IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

processing based on previous step's output file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Wed Aug 30, 2006 11:06 am
Reply with quote

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?
Back to top
View user's profile Send private message
antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Wed Aug 30, 2006 11:11 am
Reply with quote

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.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 0
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top