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 How to select record x+7 or x+2 based... JoAnn Kulcyk SYNCSORT 6 Tue Jan 16, 2018 10:49 pm
No new posts Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm
No new posts COB2 file processing rizwanaccy COBOL Programming 8 Tue Jan 02, 2018 1:00 pm
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts Preserve order in Input File pshongal DFSORT/ICETOOL 13 Thu Dec 21, 2017 4:20 pm

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