Hello,
I need to attach multiple files (10) in one e-mail via JCL. Is that possible? I started with trying to attach 2 files. I figured if I could figure out how to attach 2, I can do 10. Here is what I tried so far:
//SENDNOTE EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSIN DD DUMMY
//SYSUT1 DD *,LRECL=132
//SYSUT1 DD *,LRECL=132
HELO SYSA
MAIL FROM:sdc@xyz.com
RCPT TO:sdc@xyz.com
DATA
FROM:sdc@xyz.com
TO:sdc@xyz.com
SUBJECT: TEST REPORT APRIL 2010
MIME-VERSION: 1.0
CONTENT-TYPE: MULIPART/MIXED; CHARSET=US-ASCII
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=TEST.REPORT.APRIL.DOC
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=TEST.REPORT2.APRIL.DOC
// DD DISP=SHR,DSN=TEST.REPORT.M0410
// DD DISP=SHR,DSN=TEST.REPORT2.M0410
Please help! Thanking you in advance.....