Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi everybody Is it possible to s

Status
Not open for further replies.

deveshjogal

Programmer
Dec 30, 2002
61
Hi everybody

Is it possible to send a email thru a JCL ??
My requirement is email a dataset thru a JCL

Thanks
Devesh
 
Hi deveshjogal,

Yes, it can be done. Basically SYSOUT must point to the designated class (your sys admin will have this information), then you would set mail parameters (including FROM, TO, SUBJECT, etc...).

Your JCL and TCP manuals should have the details.

Dimandja
 
Thanks Dimandja

I got the whole code from some other place (thx to google). I will be asking my system people about the appropriate sysout and SMTP mail server address. Here is the code

//CX21360L JOB (DMIS),'COMPLINK',
// CLASS=A,
// MSGCLASS=X,
// NOTIFY=CX21360
//******************************************
//EMAIL EXEC PGM=IEBGENER
//SYSUT2 DD SYSOUT=M,DEST=(UCCCMVS,S47SMT)
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD *
HELO UCCCMVS.BITNET
TICK 0001

MAIL FROM:<DEVASH.JOGAL@LYCOS.COM>
RCPT TO:<DEVASH.JOGAL@LYCOS.COM>
DATA
DATE: 15 JAN 2002 14:50 EST
FROM: MAINFRAME JOB NOTIFICATION (DEVASH.JOGAL@LYCOS.COM)
TO: EMAIL RECIPIENT (DEVASH.JOGAL@LYCOS.COM)
SUBJECT: EMAIL FROM A BATCH JOB
TESTING E-MAIL FROM A BATCH JOB.
.
QUIT
/*

The parameter in BOLD need to be replaced with the one defined in ur shop. I dont get any manual to actually get more understanding about it.

Devesh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top