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 and Restart problem

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Cond and Restart problem
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

Site Director


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

PostPosted: Sat Apr 26, 2008 8:28 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Mon Apr 28, 2008 11:17 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
No new posts Problem commiting to DB2 from IMS MPP Ole Soerensen IMS DB/DC 2 Wed Jul 26, 2017 5:19 pm
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm

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