5 pts.
 Need help on SMTP utility in JCL
I need to send a mail through SMTP utility along with a dataset of record lenght 275 as attacchment, Is that possible can you provide example.

Software/Hardware used:
Jcl
ASKED: January 20, 2010  10:55 AM
UPDATED: July 23, 2010  10:45 AM

Answer Wiki:
Here ya go : (but I am surprised someone at your wrokpalce couldn't supply this) <pre> 000013 //************************************************ 000014 //SMTPTEST EXEC PGM=IEBGENER 000015 //SYSPRINT DD SYSOUT=* 000016 //SYSIN DD DUMMY 000017 //SYSUT2 DD SYSOUT=(L,SMTP) 000018 //SYSUT1 DD * 000019 HELO ISPSYSB 000020 MAIL FROM: <PRATTST@ISPSYSB> 000021 RCPT TO: <STEVE_PRATT@your.addr.org> 000022 DATA 000023 FROM: MVS COMPUTER 000024 TO: <STEVE_PRATT@your.addr.org> 000025 SUBJECT: SMTP TEST 000026 000027 THIS IS A TEST. DID YOU GET IT? 000028 000029 AS OF JULY 2007, THIS WORKS. 000030 /* </pre>
Last Wiki Answer Submitted:  January 21, 2010  2:13 pm  by  Meandyou   5,205 pts.
All Answer Wiki Contributors:  Meandyou   5,205 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

The JCL provided will send an email but will not send any file as an attachment. I do not believe that capability exists natively. You should see if your company has software that will do this. If not and you are looking for a free solution look up XMITIP in your favorite browser. There is no official support so it may not be viable in your environment but a great tool if you can use it. Of course if I am mistaken and it can be done natively someone will let us all know.

 45 pts.