antonrino.b
New User
Joined: 10 Jan 2006 Posts: 76 Location: Germany
|
|
|
|
Hi,
I have a JCL as below:
Code: |
// JOB-ACCT-INFO
//STEP1 EXEC PGM=MYPGM
//STEPLIB DD DSN=MY.STEP.LIB,DISP=SHR
//SYS010 DD DSN=MY.INP.FILE,DISP=SHR
//ELIST DD SYSOUT=* |
In this JCL, ELIST is the error listing generated by the COBOL pgm MYPGM. ELIST is created, only if there is any error.
I have the following requirements
1) A mail has to be sent, if ELIST is created in this step. (I have the JCL to send mail)
2) ELIST should not be in any file, should be in sysout only
How can I achieve this? |
|
antonrino.b
New User
Joined: 10 Jan 2006 Posts: 76 Location: Germany
|
|
|
|
I tried to achieve this as below:
1) I redirected my ELIST to a temp file
2) In the next step, I tried to copy this temp file to sysout using IEBGENER utility
3) If RC is 0 in the above step, ELIST was created and executed the step to send mail.
4) If RC is not 0, ELIST was not created. so no further steps.
This worked fine. But I need the error listing in sysout with DDNAME as ELIST. |
|