I need to email 2 flat files from mainframe as CSV files. (the data in the flat files already contains the delimiter ',').
The problem is, i get the 2 files attachements as CSV, but nothing in them! I feel I've got the MIME formatting wrong. I use IEBGENER, and the flat files are FB format.
Here's part of the code:
MAIL FROM:<from address>
RCPT TO:<to address>
FROM: from address
TO: to address
SUBJECT: Daily Reports
Content-Type: multipart/mixed; boundary="simpleboundary"
Please find attached the two reports.
// DD DSN=REPORT.FILE1,DISP=SHR
// DD *
// DD DSN=REPORT.FILE2,DISP=SHR
// DD *
QUIT //SYSUT2 DD SYSOUT=B,DEST=SMTP
Any help in this matter will be highly appreciated.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!