Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us