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
 

 

Cond parameter implementation in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Cond parameter implementation in JCL
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    Post subject:
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: 356
Location: New York

PostPosted: Thu May 14, 2009 3:04 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm


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