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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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