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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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