diff --git a/sas/sasjs/macros/mpe_refreshtables.sas b/sas/sasjs/macros/mpe_refreshtables.sas index d3388a5..c6a5ce0 100644 --- a/sas/sasjs/macros/mpe_refreshtables.sas +++ b/sas/sasjs/macros/mpe_refreshtables.sas @@ -326,14 +326,20 @@ proc sql; ,count(*) as table_cnt from statustabs group by 1; + create table work.libs as + select libref from work.sumcat + union + select libref from work.sumdsn; create table work.statuslibs as - select coalesce(a.libref,b.libref) as libref, - a.libsize, - a.table_cnt, - b.catalog_cnt - from work.sumdsn a - full join work.sumcat b - on a.libref=b.libref; + select a.libref, + b.libsize, + b.table_cnt, + c.catalog_cnt + from work.libs a + left join work.sumdsn b + on a.libref=b.libref + left join work.sumcat c + on a.libref=c.libref; %bitemporal_dataloader(base_lib=&mpelib ,base_dsn=mpe_datastatus_libs