The SAS Output Delivery System and reporting techniques

Mainframe email attachments

Reply
N/A
Posts: 0

Mainframe email attachments

I am sending an email from the mainframe with 2 files attached. One is a PDF and the other is XLS.
I have used 2 attach statements as so:

ATTACH=("CPMS.D72.CSD.DALIB.RESULTSP" CT='APPLICATION/PDF' EXT='PDF')
ATTACH=("CPMS.D72.CSD.DALIB.RESULTSX" EXT='XLS');

When I receive the email only 1 of the attachments has the extension applied. The other has no extension.
If I swap the 2 attach statements around, the other file has its extension.
Does anyone know how I can give both files their extensions?
N/A
Posts: 0

Re: Mainframe email attachments

Are you using the attach parameter twice? My emails from z/OS use the attach parameter just once and I have never had this problem e.g.

ATTACH=("CPMS.D72.CSD.DALIB.RESULTSP" CT='APPLICATION/PDF' EXT='PDF' "CPMS.D72.CSD.DALIB.RESULTSX" EXT='XLS');
Contributor
Posts: 73

Re: Mainframe email attachments

I also find that the type=image/gif works well for the pdf or rtf or xls file. See below:

filename outbox email
to='john.c.hennessey@ssa.gov'
subject='batch output'
attach=("ais.p2222jch.outpdf" type='image/gif' extension='rtf' "ais.p2222jch.tran" type='text/plain' extension='txt');
Ask a Question
Discussion stats
  • 2 replies
  • 283 views
  • 0 likes
  • 2 in conversation