BookmarkSubscribeRSS Feed
sunilreddy
Fluorite | Level 6

getting Error message  "ERROR: No body file. TAGSETS.EXCELXP output will not be created." in 9.4 where same statement is showing as Warning in 9.2 and opening in excel.

But getting error in 9.4 by using same excel statements

Any idea How to avoid below error

18        +*ProcessBody;
19        +ods listing close;
20        +data _null_;
21        + rc= stpsrv_header('Content-type', 'application/vnd.ms-excel');
22        + rc= stpsrv_header('Content-disposition', 'attachment;
23        + filename= Status Report.xls');
24        +run;

WARNING: No logical assign for filename _WEBOUT.
WARNING: No logical assign for filename _WEBOUT.

MPRINT(RUN_CYC):   ods tagsets.ExcelXP options(sheet_name="Status Report" absolute_column_width='20,30,30,15,15,15,15,15,30,15,15') style=analysis;
ERROR: No body file. TAGSETS.EXCELXP output will not be created.
Proc report data= output2;
ods tagsets.ExcelXP close;

2 REPLIES 2
ballardw
Super User

Your MPRINT shows no File= as part of the tagsets.ExcelXP declaration.

Cynthia_sas
Diamond | Level 26

Hi: When you use STPSRV_HEADER for your stored process, you do NOT code an explicit filename for the FILE= option. Instead you specify either BODY=_webout or FILE=_webout. Please see this previous forum posting:

https://communities.sas.com/message/129123#129123

cynthia

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 3028 views
  • 0 likes
  • 3 in conversation