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
 

 

How to code the JCL for this?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
arunpvarier

New User


Joined: 07 Nov 2006
Posts: 16
Location: banglore

PostPosted: Wed Nov 29, 2006 3:14 pm    Post subject: How to code the JCL for this?
Reply with quote

There are 4 steps in a job(say step1, step2 ,step3,step4). the condition is that if
Return code of step 1=0 execute step 1,step2,step4
if return code of step1 >0 execute step1,step 3,step4
how to code this JCL?
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Wed Nov 29, 2006 3:29 pm    Post subject:
Reply with quote

Hi There,

//STEP1 EXEC PGM=PROG1
//STEP2 EXEC PGM=COBPROG1,COND=(0,NE,STEP1)
//STEP3 EXEC PGM=COBPROG2,COND=(0,LE,STEP1)
//STEP4 EXEC PGM=COBPROG2,COND=(0,LT,STEP1)



Correction r welcome
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Nov 29, 2006 4:39 pm    Post subject: Re: How to code a jcl for this?
Reply with quote

//STEP1 EXEC PGM=PROG1
// IF (STEP1.RC = 0) THEN
//STEP2 EXEC PGM=PROG2
// ENDIF
// IF (STEP1.RC > 0) THEN
//STEP3 EXEC PGM=PROG3
// ENDIF
//STEP4 EXEC PGM=PROG4
Back to top
View user's profile Send private message
arunpvarier

New User


Joined: 07 Nov 2006
Posts: 16
Location: banglore

PostPosted: Wed Nov 29, 2006 4:46 pm    Post subject: Re: How to code a jcl for this?
Reply with quote

Thanks for responce...


arun
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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


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