The SAS Output Delivery System and reporting techniques

ods EXCELXP error in 9

Reply
Frequent Contributor
Posts: 115

ods EXCELXP error in 9

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;

Super User
Posts: 11,343

Re: ods EXCELXP error in 9

Posted in reply to sunilreddy

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

SAS Super FREQ
Posts: 8,868

Re: ods EXCELXP error in 9

Posted in reply to sunilreddy

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

Ask a Question
Discussion stats
  • 2 replies
  • 992 views
  • 0 likes
  • 3 in conversation