@sasjs/core 4.30.0 → 4.30.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/base/mp_abort.sas CHANGED
@@ -74,7 +74,7 @@
74
74
 
75
75
  %if %symexist(_SYSINCLUDEFILEDEVICE)
76
76
  /* abort cancel FILE does not restart outside the INCLUDE on Viya 3.5 */
77
- and "&SYSPROCESSNAME " ne "Compute Server "
77
+ and %superq(SYSPROCESSNAME) ne %str(Compute Server)
78
78
  %then %do;
79
79
  %if "*&_SYSINCLUDEFILEDEVICE*" ne "**" %then %do;
80
80
  data &errds;
@@ -92,7 +92,7 @@
92
92
 
93
93
  /* Web App Context */
94
94
  %if %symexist(_PROGRAM)
95
- or "&SYSPROCESSNAME "="Compute Server "
95
+ or %superq(SYSPROCESSNAME) = %str(Compute Server)
96
96
  or &mode=INCLUDE
97
97
  %then %do;
98
98
  options obs=max replace mprint;
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "@sasjs/cli": "3.13.0"
37
37
  },
38
- "version": "4.30.0"
38
+ "version": "4.30.3"
39
39
  }
@@ -60,6 +60,19 @@
60
60
  %let fref1=%mf_getuniquefileref();
61
61
  %let libref=%mf_getuniquelibref();
62
62
 
63
+ %if %sysget(MODE)=desktop %then %do;
64
+ /* users api does not exist in desktop mode */
65
+ data &outds;
66
+ length DISPLAYNAME $60 USERNAME:$30 ID 8;
67
+ USERNAME="&sysuserid";
68
+ DISPLAYNAME="&sysuserid (desktop mode)";
69
+ ID=1;
70
+ output;
71
+ stop;
72
+ run;
73
+ %return;
74
+ %end;
75
+
63
76
  /* avoid sending bom marker to API */
64
77
  %let optval=%sysfunc(getoption(bomfile));
65
78
  options nobomfile;