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

Cond and Restart problem


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
aakar

New User


Joined: 08 Apr 2008
Posts: 36
Location: mumbai

PostPosted: Sat Apr 26, 2008 3:39 pm
Reply with quote

Hi ,
I am having a job which has the following Steps:
JS010 Program1(at PS020 which gives 0 or 100 )
JS020 PROGRAM2
.
.
.
.
.
JS130 Program 13 , COND = (100,EQ,JS010.PS020)
JS140 Program 14 , COND = (100,NE,JS010.PS020).
If JS020 abends and i restart from JS020 then both 13 and 14 get executed even if JS010 gave RC=0.

Don't understand this???
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Apr 26, 2008 8:28 pm
Reply with quote

Hello aakar and welcome to the forums,

Quote:
If JS020 abends and i restart from JS020 then both 13 and 14 get executed even if JS010 gave RC=0.

Don't understand this???


That is just that way it works. . . The named step "does not exist" for the re-run, so the COND= cannot evalutate "true". From the JCL manual linked to via "IBM MANUALS" at the top of the page:
Quote:
When a COND parameter on a step following the restarted step refers to a step that precedes the restarted step, the system evaluates the COND parameter as false


You will do yourself a favor by becoming familiar with the manuals for the products/features you use. An immediate answer beats waitinig icon_smile.gif
Back to top
View user's profile Send private message
aakar

New User


Joined: 08 Apr 2008
Posts: 36
Location: mumbai

PostPosted: Mon Apr 28, 2008 9:36 am
Reply with quote

Thank you very much for the reply,it seems you are correct from msglog i can see that all steps referring to that step's return code have run. Can you please give me the exact manual name in which you found the Quote you have made.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Apr 28, 2008 11:17 am
Reply with quote

You're welcome icon_smile.gif

Quote:
Can you please give me the exact manual name in which you found the Quote you have made.
Sure - it is the "z/OS JCL Language Reference" from the "IBM Manuals" link above. Here is the direct link to the page containing the info i posted:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/iea2b650/16.5.6.5

d
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Reference for COND parameter. JCL & VSAM 1
No new posts Job scheduling problem. JCL & VSAM 9
Search our Forums:

Back to Top