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
 
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: 1190
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: 4650
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 Getting GG return code abdulrafi IMS DB/DC 2 Tue Apr 10, 2018 12:31 pm
No new posts IMS error U4038 while executing my PL... abdulrafi IMS DB/DC 2 Thu Feb 08, 2018 1:05 pm
No new posts Conditional setting of return-code af... sanvan COBOL Programming 9 Wed Jan 31, 2018 11:05 pm
No new posts IBEGENER RETURN CODE 12 anilkumar922 All Other Mainframe Topics 5 Wed Dec 13, 2017 11:41 am
No new posts Finding the plan when code compiled u... Ahemad DB2 2 Fri Dec 01, 2017 6:38 pm

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