mirror of
https://github.com/sasjs/core.git
synced 2026-01-04 16:10:06 +00:00
Merge pull request #252 from sasjs/allanbowe/ms-getgroups-fails-in-251
fix: creating empty table in desktop mode (ms_getgroups)
This commit is contained in:
13
all.sas
13
all.sas
@@ -20185,6 +20185,17 @@ filename &headref clear;
|
||||
)
|
||||
|
||||
%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();
|
||||
@@ -20233,7 +20244,7 @@ run;
|
||||
|
||||
%mp_abort(
|
||||
iftrue=(&syscc ne 0)
|
||||
,mac=ms_getusers.sas
|
||||
,mac=ms_getgroups.sas
|
||||
,msg=%str(Issue reading response JSON)
|
||||
)
|
||||
|
||||
|
||||
@@ -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)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user