1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-03 23:50:06 +00:00

fix: returning user list (single user) in desktop mode in ms_getusers()

This commit is contained in:
Allan Bowe
2022-06-17 07:52:39 +00:00
parent c8805db0b5
commit f593c7bec9
2 changed files with 26 additions and 0 deletions

View File

@@ -60,6 +60,19 @@
%let fref1=%mf_getuniquefileref();
%let libref=%mf_getuniquelibref();
%if %sysget(MODE)=desktop %then %do;
/* users api does not exist in desktop mode */
data &outds;
length DISPLAYNAME $60 USERNAME:$30 ID 8;
USERNAME="&sysuserid";
DISPLAYNAME="&sysuserid (desktop mode)";
ID=1;
output;
stop;
run;
%return;
%end;
/* avoid sending bom marker to API */
%let optval=%sysfunc(getoption(bomfile));
options nobomfile;