@sasjs/core 4.18.8 → 4.18.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.
@@ -152,6 +152,7 @@ run;
152
152
  data &out_ds;
153
153
  set &out_ds;
154
154
  length infoname infoval $60 fref $8;
155
+ if _n_=1 then call missing(fref);
155
156
  rc=filename(fref,filepath);
156
157
  drop rc infoname fid i close fref;
157
158
  if file_or_folder='file' then do;
@@ -203,13 +203,13 @@
203
203
  prxchange('s/'!!'0A'x!!'/\n/',-1,
204
204
  prxchange('s/'!!'0D'x!!'/\r/',-1,
205
205
  prxchange('s/'!!'09'x!!'/\t/',-1,
206
- prxchange('s/'!!'00'x!!'/\\u0000/',-1, /* NUL */
207
- prxchange('s/'!!'0E'x!!'/\\u000E/',-1, /* SS */
208
- prxchange('s/'!!'0F'x!!'/\\u000F/',-1, /* SF */
209
- prxchange('s/'!!'01'x!!'/\\u0001/',-1, /* SOH */
210
- prxchange('s/'!!'02'x!!'/\\u0002/',-1, /* STX */
211
- prxchange('s/'!!'02'x!!'/\\u0010/',-1, /* DLE */
212
- prxchange('s/'!!'11'x!!'/\\u0011/',-1, /* DC1 */
206
+ prxchange('s/\x00/\\u0000/',-1, /* NUL */
207
+ prxchange('s/\x0E/\\u000E/',-1, /* SS */
208
+ prxchange('s/\x0F/\\u000F/',-1, /* SF */
209
+ prxchange('s/\x01/\\u0001/',-1, /* SOH */
210
+ prxchange('s/\x02/\\u0002/',-1, /* STX */
211
+ prxchange('s/\x10/\\u0010/',-1, /* DLE */
212
+ prxchange('s/\x11/\\u0011/',-1, /* DC1 */
213
213
  prxchange('s/\\/\\\\/',-1,&&name&i)
214
214
  ))))))))))))!!'"';
215
215
  %end;
@@ -105,12 +105,20 @@ run;
105
105
  %end;
106
106
  %end;
107
107
  %else %if &contentype=HTML %then %do;
108
- %if &platform=SASVIYA %then %do;
108
+ %if (&platform=SASMETA and &streamweb=1) %then %do;
109
+ data _null_;
110
+ rc=stpsrv_header('Content-type','text/html');
111
+ rc=stpsrv_header('Content-disposition',"attachment; filename=&outname");
112
+ run;
113
+ %end;
114
+ %else %if &platform=SASVIYA %then %do;
109
115
  filename &outref filesrvc parenturi="&SYS_JES_JOB_URI" name="_webout.json"
110
- contenttype="text/html";
116
+ contenttype="text/html"
117
+ contentdisp="attachment; filename=&outname";
111
118
  %end;
112
119
  %else %if &platform=SASJS %then %do;
113
120
  %mfs_httpheader(Content-type,text/html)
121
+ %mfs_httpheader(Content-disposition,%str(attachment; filename=&outname))
114
122
  %end;
115
123
  %end;
116
124
  %else %if &contentype=TEXT %then %do;
@@ -236,13 +236,13 @@ data _null_;
236
236
  put ' prxchange(''s/''!!''0A''x!!''/\n/'',-1, ';
237
237
  put ' prxchange(''s/''!!''0D''x!!''/\r/'',-1, ';
238
238
  put ' prxchange(''s/''!!''09''x!!''/\t/'',-1, ';
239
- put ' prxchange(''s/''!!''00''x!!''/\\u0000/'',-1, /* NUL */ ';
240
- put ' prxchange(''s/''!!''0E''x!!''/\\u000E/'',-1, /* SS */ ';
241
- put ' prxchange(''s/''!!''0F''x!!''/\\u000F/'',-1, /* SF */ ';
242
- put ' prxchange(''s/''!!''01''x!!''/\\u0001/'',-1, /* SOH */ ';
243
- put ' prxchange(''s/''!!''02''x!!''/\\u0002/'',-1, /* STX */ ';
244
- put ' prxchange(''s/''!!''02''x!!''/\\u0010/'',-1, /* DLE */ ';
245
- put ' prxchange(''s/''!!''11''x!!''/\\u0011/'',-1, /* DC1 */ ';
239
+ put ' prxchange(''s/\x00/\\u0000/'',-1, /* NUL */ ';
240
+ put ' prxchange(''s/\x0E/\\u000E/'',-1, /* SS */ ';
241
+ put ' prxchange(''s/\x0F/\\u000F/'',-1, /* SF */ ';
242
+ put ' prxchange(''s/\x01/\\u0001/'',-1, /* SOH */ ';
243
+ put ' prxchange(''s/\x02/\\u0002/'',-1, /* STX */ ';
244
+ put ' prxchange(''s/\x10/\\u0010/'',-1, /* DLE */ ';
245
+ put ' prxchange(''s/\x11/\\u0011/'',-1, /* DC1 */ ';
246
246
  put ' prxchange(''s/\\/\\\\/'',-1,&&name&i) ';
247
247
  put ' ))))))))))))!!''"''; ';
248
248
  put ' %end; ';
package/package.json CHANGED
@@ -36,5 +36,5 @@
36
36
  "@sasjs/cli": "3.6.0",
37
37
  "@sasjs/core": "4.4.7"
38
38
  },
39
- "version": "4.18.8"
39
+ "version": "4.18.11"
40
40
  }
@@ -380,13 +380,13 @@ data _null_;
380
380
  put ' prxchange(''s/''!!''0A''x!!''/\n/'',-1, ';
381
381
  put ' prxchange(''s/''!!''0D''x!!''/\r/'',-1, ';
382
382
  put ' prxchange(''s/''!!''09''x!!''/\t/'',-1, ';
383
- put ' prxchange(''s/''!!''00''x!!''/\\u0000/'',-1, /* NUL */ ';
384
- put ' prxchange(''s/''!!''0E''x!!''/\\u000E/'',-1, /* SS */ ';
385
- put ' prxchange(''s/''!!''0F''x!!''/\\u000F/'',-1, /* SF */ ';
386
- put ' prxchange(''s/''!!''01''x!!''/\\u0001/'',-1, /* SOH */ ';
387
- put ' prxchange(''s/''!!''02''x!!''/\\u0002/'',-1, /* STX */ ';
388
- put ' prxchange(''s/''!!''02''x!!''/\\u0010/'',-1, /* DLE */ ';
389
- put ' prxchange(''s/''!!''11''x!!''/\\u0011/'',-1, /* DC1 */ ';
383
+ put ' prxchange(''s/\x00/\\u0000/'',-1, /* NUL */ ';
384
+ put ' prxchange(''s/\x0E/\\u000E/'',-1, /* SS */ ';
385
+ put ' prxchange(''s/\x0F/\\u000F/'',-1, /* SF */ ';
386
+ put ' prxchange(''s/\x01/\\u0001/'',-1, /* SOH */ ';
387
+ put ' prxchange(''s/\x02/\\u0002/'',-1, /* STX */ ';
388
+ put ' prxchange(''s/\x10/\\u0010/'',-1, /* DLE */ ';
389
+ put ' prxchange(''s/\x11/\\u0011/'',-1, /* DC1 */ ';
390
390
  put ' prxchange(''s/\\/\\\\/'',-1,&&name&i) ';
391
391
  put ' ))))))))))))!!''"''; ';
392
392
  put ' %end; ';