mirror of
https://github.com/sasjs/core.git
synced 2026-01-16 04:50:05 +00:00
fix: ensuring results when strict mode enabled in ms_getusers
This commit is contained in:
6
all.sas
6
all.sas
@@ -20703,14 +20703,16 @@ libname &libref JSON fileref=&fref1;
|
|||||||
%if "&group"="0" and "&gid"="0" %then %do;
|
%if "&group"="0" and "&gid"="0" %then %do;
|
||||||
data &outds;
|
data &outds;
|
||||||
length DISPLAYNAME $60 USERNAME:$30 ID 8;
|
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;
|
drop ordinal_root;
|
||||||
run;
|
run;
|
||||||
%end;
|
%end;
|
||||||
%else %do;
|
%else %do;
|
||||||
data &outds;
|
data &outds;
|
||||||
length DISPLAYNAME $60 USERNAME:$30 ID 8;
|
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;
|
drop ordinal_root ordinal_users;
|
||||||
run;
|
run;
|
||||||
%end;
|
%end;
|
||||||
|
|||||||
@@ -116,14 +116,16 @@ libname &libref JSON fileref=&fref1;
|
|||||||
%if "&group"="0" and "&gid"="0" %then %do;
|
%if "&group"="0" and "&gid"="0" %then %do;
|
||||||
data &outds;
|
data &outds;
|
||||||
length DISPLAYNAME $60 USERNAME:$30 ID 8;
|
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;
|
drop ordinal_root;
|
||||||
run;
|
run;
|
||||||
%end;
|
%end;
|
||||||
%else %do;
|
%else %do;
|
||||||
data &outds;
|
data &outds;
|
||||||
length DISPLAYNAME $60 USERNAME:$30 ID 8;
|
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;
|
drop ordinal_root ordinal_users;
|
||||||
run;
|
run;
|
||||||
%end;
|
%end;
|
||||||
|
|||||||
Reference in New Issue
Block a user