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
 

 

Regarding condition codes

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

New User


Joined: 02 Jun 2005
Posts: 12

PostPosted: Wed Aug 03, 2005 3:54 pm    Post subject: Regarding condition codes
Reply with quote

hi,

i have 10 steps in my JCL job, i want to execute alternate step of my job, can any one tell me the syntax of cond statement
Back to top
View user's profile Send private message

rajakumar10

New User


Joined: 03 Aug 2005
Posts: 12

PostPosted: Wed Aug 03, 2005 4:10 pm    Post subject:
Reply with quote

If you know the condition codes then you do the following.
Say you want to execute STEP1 & STEP3 bypassing STEP2.
You know the expected cond code for STEP1 & STEP3 are 0

you can code the EXEC stmts as below

//STEP1 EXEC PGM=ABC
//STEP2 EXEC PGM=BCD,COND=(10,NE,STEP1)
//STEP3 EXEC PGM=ABCE,COND=(0,NE,STEP1)
Back to top
View user's profile Send private message
subhash gowda
Warnings : 1

New User


Joined: 02 Jun 2005
Posts: 12

PostPosted: Wed Aug 03, 2005 4:27 pm    Post subject:
Reply with quote

hi,
raj

what to do if step 1 abnormally abends, it must excecute if step abends abnormally
Back to top
View user's profile Send private message
rajakumar10

New User


Joined: 03 Aug 2005
Posts: 12

PostPosted: Wed Aug 03, 2005 4:45 pm    Post subject:
Reply with quote

If you 2 steps and you want to execute STEP2 even if STEP1 abends abnormally. You should code as below

//STEP1 EXEC PGM=PGM1
//STEP2 EXEC PGM=PGM2,COND=EVEN
Back to top
View user's profile Send private message
shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Wed Aug 03, 2005 4:50 pm    Post subject: Re: Regarding condition codes
Reply with quote

I think you can use IF condn to execute
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Wed Aug 03, 2005 6:37 pm    Post subject: Re: Regarding condition codes
Reply with quote

Check links below.....

http://ibmmainframes.com/viewtopic.php?t=861
http://ibmmainframes.com/viewtopic.php?t=2603

Regards,

Priyesh.
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Joinkeys with condition scdinesh DFSORT/ICETOOL 10 Tue Feb 14, 2017 12:20 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts 2 vsam file compare and update a fiel... ABINAYATHULASI DFSORT/ICETOOL 6 Sun May 29, 2016 11:15 am


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