IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Regarding condition codes


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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
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: 1448
Location: Chicago, IL

PostPosted: Wed Aug 03, 2005 6:37 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts AI writing DFSORT, REXX codes.. All Other Mainframe Topics 3
No new posts How to give complex condition in JCL . CLIST & REXX 30
No new posts selectively copy based on condition DFSORT/ICETOOL 3
No new posts RXSUBCOM Return Codes / Documentation CLIST & REXX 6
Search our Forums:

Back to Top