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
 
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 Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm

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