1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-04 16:10:06 +00:00

fix: creating empty table in desktop mode (ms_getgroups)

This commit is contained in:
Allan Bowe
2022-06-11 19:29:21 +00:00
parent 24c50cde56
commit 934b7d4f8a
2 changed files with 24 additions and 2 deletions

View File

@@ -41,6 +41,17 @@
)
%local fref0 fref1 libref optval rc msg;
%if %sysget(MODE)=desktop %then %do;
/* groups api does not exist in desktop mode */
data &outds;
length NAME $32 DESCRIPTION $64. GROUPID 8;
call missing (of _all_);
stop;
run;
%return;
%end;
%let fref0=%mf_getuniquefileref();
%let fref1=%mf_getuniquefileref();
%let libref=%mf_getuniquelibref();
@@ -89,7 +100,7 @@ run;
%mp_abort(
iftrue=(&syscc ne 0)
,mac=ms_getusers.sas
,mac=ms_getgroups.sas
,msg=%str(Issue reading response JSON)
)