@sasjs/core 4.27.10 → 4.27.11

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
@@ -171,7 +171,7 @@
171
171
  /* send response in SASjs JSON format */
172
172
  data _null_;
173
173
  file _webout mod lrecl=32000 encoding='utf-8';
174
- length msg syswarningtext syserrortext $32767 ;
174
+ length msg syswarningtext syserrortext $32767 mode $10 ;
175
175
  sasdatetime=datetime();
176
176
  msg=symget('msg');
177
177
  %if &logline>0 %then %do;
@@ -187,7 +187,10 @@
187
187
  msg=cats('"',msg,'"');
188
188
  if symexist('_debug') then debug=quote(trim(symget('_debug')));
189
189
  else debug='""';
190
- put '>>weboutBEGIN<<';
190
+ if symexist('sasjsprocessmode')
191
+ and symget('sasjsprocessmode')='Stored Program'
192
+ then mode='SASJS';
193
+ if mode ne 'SASJS' then put '>>weboutBEGIN<<';
191
194
  put '{"SYSDATE" : "' "&SYSDATE" '"';
192
195
  put ',"SYSTIME" : "' "&SYSTIME" '"';
193
196
  put ',"sasjsAbort" : [{';
@@ -220,7 +223,7 @@
220
223
  put ",""SYSWARNINGTEXT"" : " syswarningtext;
221
224
  put ',"END_DTTM" : "' "%sysfunc(datetime(),E8601DT26.6)" '" ';
222
225
  put "}" @;
223
- put '>>weboutEND<<';
226
+ if mode ne 'SASJS' then put '>>weboutEND<<';
224
227
  run;
225
228
 
226
229
  %put _all_;
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "@sasjs/cli": "3.13.0"
37
37
  },
38
- "version": "4.27.10"
38
+ "version": "4.27.11"
39
39
  }