Need help on SMTP utility in JCL

5 pts.
Tags:
JCL
SMTP
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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>

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Indoubt88
    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 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following