Thank you so much for your time on this post. I have a final question with two scenarios scenario1: I got email with two excel sheets attached. It worked as expected. DATA REPORT; FORMAT DATE1 MMDDYY8.; CALL SYMPUT ('HDATE',PUT(TODAY(),MMDDYY8.)); FORMAT EMAILDATE MMDDYY8.; PUT "!EM_SUBJECT!" "HDATE11"; FILENAME MYFILE EMAIL FROM= ("KG12456@ABC.COM") TO= ("KG12456@ABC.COM") ATTACH=("USER.GHJK.KKL0M5XR.AMKX.NEWCNTRT" NAME='REPORT1' EXTENSION='XLS' "USER.GHJK.KKL0M5XR.AMKX.OLDCNTRT" NAME='REPORT2' EXTENSION='XLS') TYPE= "TEXT/PLAIN"; DATA REPORT; SET REPORT; FILE MYFILE; scenario2: I got errors though I have used same files which I used in scenario1. It has keep two files in single excel with tabs. I have highlighted error in bold. DATA REPORT; FORMAT DATE1 MMDDYY8.; CALL SYMPUT ('HDATE',PUT(TODAY(),MMDDYY8.)); FORMAT EMAILDATE MMDDYY8.; PUT "!EM_SUBJECT!" "HDATE11"; FILENAME MYFILE EMAIL FROM= ("KG12456@ABC.COM") TO= ("KG12456@ABC.COM") ATTACH=("USER.GHJK.KKL0M5XR.AMKX.NEWCNTRT" NAME='REPORT1' EXTENSION='XLS' SHEET_NAME='TAB1' ______ 24 ERROR 24-2: Invalid value for the ATTACH option. "USER.GHJK.KKL0M5XR.AMKX.OLDCNTRT" NAME='REPORT1' EXTENSION='XLS' SHEET_NAME='TAB2') TYPE= "TEXT/PLAIN"; DATA REPORT; SET REPORT; FILE MYFILE;
... View more