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

Cond parameter implementation in JCL


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
loga_nathan_m

New User


Joined: 07 Jun 2007
Posts: 40
Location: India

PostPosted: Thu May 14, 2009 1:58 pm
Reply with quote

hi all,

i have my JCL containing below steps.

PS0010 EXEC PGM=IEBGENER
PS001A EXEC PGM=ABENDPGM,COND=(4,GE,PS0010)
PS0020 EXEC PGM=IEBGENER,COND=(4,EQ,PS0010)
PS002A EXEC PGM=ABENDPGM,COND=(4,GE,PS0020)

when step PS0020 is not executed because of condition code then PS002A should have get by passed. could you let the know how this can be implemented.
Back to top
View user's profile Send private message
loga_nathan_m

New User


Joined: 07 Jun 2007
Posts: 40
Location: India

PostPosted: Thu May 14, 2009 2:13 pm
Reply with quote

when step PS0020 is by passed, then PS002A is getting executed and gives an abend, which should not happen.

Please guide me on this issue.
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Thu May 14, 2009 3:04 pm
Reply with quote

Code:

PS002A EXEC PGM=ABENDPGM,COND=(4,GE,PS0020)


should be

Code:

PS002A EXEC PGM=ABENDPGM,COND=(4,LE,PS0020)


in the later case, PS002A will be bypassed when Return code is greater than or equal to '4'.
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
Search our Forums:

Back to Top