From 4ecd186e5cb22dd436f2d7f1200956f4e3f27425 Mon Sep 17 00:00:00 2001 From: allan Date: Wed, 11 Jun 2025 19:04:21 +0100 Subject: [PATCH] fix: refresh process --- sas/sasjs/macros/mpe_refreshtables.sas | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) 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