I have tried what I have found on the support forums but nothing seems to work. I have tried to use the XLSX and XML extension on the ENAME portion of the code below and i cannot even open the file. Below is the only way I have managed to export and email the report and is able to open but it pops up the warning. I would like it not to have such a warning.
My SAS version is : 8.2 (8.2.0.1201) (32-bit)
DATA _NULL_; ENAME_DT = PUT(DATE(),DATE9.); ENAME = STRIP(("Weekly_Report_" ||ENAME_DT||".xls")); CALL SYMPUT("ENAME", ENAME); RUN; %LET OUTPUT_PATH = /data/bi/data/inbox/;
ODS LISTING CLOSE; ods tagsets.ExcelXP style=sasweb path= "&OUTPUT_PATH" file= "&ENAME" Style=Printer; ods tagsets.ExcelXP options(sheet_interval="none" sheet_name='Weekly Summary Report' AUTOFIT_HEIGHT="yes" absolute_column_width='10,20,5,5,5,5,5,5,5,5,7,7,7,7,7'); %report_page1(BO_WEEKLY_RESULTS); ods tagsets.ExcelXP options(sheet_interval="none" sheet_name='Weekly AHT Report' AUTOFIT_HEIGHT="yes" absolute_column_width='10,39,5,5,5,5,5,5,5,5,7,7,7,7,7'); %report_page2(BO_AHT_WEEK_RESULTS); ods tagsets.ExcelXP options(sheet_interval="none" sheet_name='Weekly Due Report' AUTOFIT_HEIGHT="yes" absolute_column_width='10,39,5,5,5,5,5,5,5,5,7,7,7,7,7'); %report_page3(BO_DUE_WEEK_RESULTS); ods tagsets.ExcelXP close;
/*%exec(step=Output the invalid eDM file, parm=&OUTPUT_PATH./&ENAME..csv);*/
filename mymail email to=('nam@email.com') subject= "Weekly Report." attach=("&OUTPUT_PATH./&ENAME" content_type="application/xls");
data _null_;
file mymail; put 'Hello:'; put ' '; put "Attached is the Weekly Report"; put ' '; put 'If you encounter any problems with the file please let me know. '; PUT ' '; PUT ' '; put 'Thank You,'; put ' '; run;
... View more