Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
processing based on previous step's output file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: processing based on previous step's output file
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts VSAM File free space sancraig16 JCL & VSAM 13 Fri Mar 30, 2018 1:02 am
No new posts Query to compare 2 values of 1 column... Poha Eater DB2 13 Fri Mar 09, 2018 10:45 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us