28%macro mfs_httpheader(header_name
31%global sasjs_stpsrv_header_loc;
34%
if %sysfunc(filename(fref,&sasjs_stpsrv_header_loc)) ne 0 %then %
do;
35 %put &=fref &=sasjs_stpsrv_header_loc;
36 %put %str(ERR)OR: %sysfunc(sysmsg());
40%let fid=%sysfunc(fopen(&fref,A));
43 %put %str(ERR)OR: %sysfunc(sysmsg());
47%let rc=%sysfunc(fput(&fid,%str(&header_name): %str(&header_value)));
48%let rc=%sysfunc(fwrite(&fid));
50%let rc=%sysfunc(fclose(&fid));
51%let rc=%sysfunc(filename(&fref));