From cad7f13a0eee3c343bac0b55feb3ef2c4f10d494 Mon Sep 17 00:00:00 2001 From: Allan Bowe Date: Sat, 2 Jul 2022 20:13:02 +0000 Subject: [PATCH] fix: ensuring results when strict mode enabled in ms_getusers --- all.sas | 6 ++++-- server/ms_getusers.sas | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/all.sas b/all.sas index 4bfee7a..9f11c82 100644 --- a/all.sas +++ b/all.sas @@ -20703,14 +20703,16 @@ libname &libref JSON fileref=&fref1; %if "&group"="0" and "&gid"="0" %then %do; data &outds; length DISPLAYNAME $60 USERNAME:$30 ID 8; - set &libref..root; + if nobs=0 then call missing(of _all_); + set &libref..root nobs=nobs; drop ordinal_root; run; %end; %else %do; data &outds; length DISPLAYNAME $60 USERNAME:$30 ID 8; - set &libref..users; + if nobs=0 then call missing(of _all_); + set &libref..users nobs=nobs; drop ordinal_root ordinal_users; run; %end; diff --git a/server/ms_getusers.sas b/server/ms_getusers.sas index 2dbe021..8034f9e 100644 --- a/server/ms_getusers.sas +++ b/server/ms_getusers.sas @@ -116,14 +116,16 @@ libname &libref JSON fileref=&fref1; %if "&group"="0" and "&gid"="0" %then %do; data &outds; length DISPLAYNAME $60 USERNAME:$30 ID 8; - set &libref..root; + if nobs=0 then call missing(of _all_); + set &libref..root nobs=nobs; drop ordinal_root; run; %end; %else %do; data &outds; length DISPLAYNAME $60 USERNAME:$30 ID 8; - set &libref..users; + if nobs=0 then call missing(of _all_); + set &libref..users nobs=nobs; drop ordinal_root ordinal_users; run; %end;