I wonder if there´s a way to let the user recieve an Excel-file with .xlsx-format from the stored process. I've been trying to use the new ods excel with file=_webout but not succedded. Any tips would be appreciated. See below the code I've been trying:
data _null_;
rc = stpsrv_header('Content-type','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
rc = stpsrv_header('Content-disposition','attachment; filename=Output.xlsx');
run;
*ProcessBody;
%STPBEGIN;
* Slutet på EG-generad kod (redigera inte den här raden);
ods excel file=_webout style=seaside options(sheet_name="Beståndslista" embedded_titles="on" embed_titles_once="on");
title "Sashelp.class";
proc print data=sashelp.class noobs label;
run;
ods excel close;
* Början på EG-genererad kod (redigera inte den här raden);
;*';*";*/;quit;
%STPEND;
I found a solution in the posting "ODS EXCEL in Web StoreProcess".
It seems like I just have to remove the %STPBEGIN; and %STPEND; macro calls. I´m not sure why but it works now 😃
Thanks for your reply.
I found a solution in the posting "ODS EXCEL in Web StoreProcess".
It seems like I just have to remove the %STPBEGIN; and %STPEND; macro calls. I´m not sure why but it works now 😃
Thanks for your reply.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.