DocBag

Back Issue

Email notification from Batch Jobs

First of all some assumptions:
  1. we are using IBM's TCP/IP which includes a CLIST called SMTPNOTE
  2. our mail product has an SMTP gateway
  3. we have a catalogued JCL procedure called TSOBATCH. An example appears below.
Here is some JCL that I use: //MAIL EXEC TSOBATCH //SYSTSIN DD * %SMTPNOTE TO(userid@smtp.mail.gateway) + DA(TEMP.REPORT) SU(DailyReport) SEND DELETE TEMP.REPORT Earlier processing in the job created a dataset TEMP.REPORT which is RECFM=FB,LRECL=80. Note that the above section of JCL must not have line numbers. As mentioned in an earlier stupid trick, the dataset TEMP.REPORT can be created with the correct DSN by specifying DSN=&SYSUID..TEMP.REPORT

TSOBATCH Procedure

//TSOBATCH PROC //IKJEDIT EXEC PGM=IKJEFT01,DYNAMNBR=140,REGION=4M,TIME=30 //SYSPROC DD sysproc concatenation .... //SYSHELP DD DSN=SYS1.HELP,DISP=SHR //SYSLBC DD DSN=SYS1.BRODCAST,DISP=SHR //SYSPRINT DD SYSOUT=* //SYSTERM DD SYSOUT=* //SYSTSPRT DD SYSOUT=* This is only an example. It should be modeled on your "standard" installation TSO logon proc.

Feedback

Comments or suggestions can be sent to the author.

Last Month's Topic

Big Iron