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
SAS Super FREQ

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

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 2781 views
  • 0 likes
  • 3 in conversation