BookmarkSubscribeRSS Feed
CHUNantes
Obsidian | Level 7

Hello.

 

Our users are using Add-in Office Excel to run a Store Process and generate a dashboard in Excel.

 

When running the STP, user is prompted to choose between storing the result in a new worksheet or use the current one and specify the cell to use.

 

No matter which option you choose, Excel open a new worksheet to display the result and the file is always named Main.xlsx

 

Here is the start of our STP where we specify the name wanted :

 

%global _odsdest _odsstyle _odsstylesheet;

%let _odsdest=excel;
%let _odsstyle=sasweb;
%let _odsstylesheet=;

data _null_;
rc = stpsrv_header('Content-type','application/vnd.ms-excel;');
rc = stpsrv_header('Content-disposition','attachment; filename=BilanDesLits.xlsx');
run;

*ProcessBody;
%stpbegin;

 

What's wrong ? Is there another option to set the filename ?

 

Regards.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

Discussion stats
  • 0 replies
  • 1232 views
  • 0 likes
  • 1 in conversation