View previous topic :: View next topic |
Author |
Message |
ranga_subham Intermediate

Joined: 31 Jan 2006 Posts: 255 Topics: 72
|
Posted: Sat Jul 15, 2006 8:58 pm Post subject: COND code not being on restart step but in other step. |
|
|
Hi,
This is an interview question. The JCL got 10 steps. It abended in 5th step. So, the job should be restarted from 6th step onwards. Here, we could give RESTART=JS006. And, the cond code will be nullified if 6th step has got any. What happens if a step JS008 got a COND code instead of restarted step JS006. Will the COND considered as nullified or how it goes?
TIA. _________________ Ranga
*****
None of us is as smart as all of us - Ken Blanchard |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Sun Jul 16, 2006 12:48 pm Post subject: |
|
|
ranga_subham,
When restarting a job, the restart step becomes, in effect, the first step in the job. Therefore, the system evaluates a COND parameter on the restart step as false and executes the step. Subsequent steps might be executed. 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.
And this is explained in detail over here.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B631/16.5.6.5?SHELF=&DT=20030423085347&CASE=
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
ranga_subham Intermediate

Joined: 31 Jan 2006 Posts: 255 Topics: 72
|
Posted: Sun Jul 16, 2006 8:59 pm Post subject: |
|
|
Thank you very much Kolusu. I was trying to write a JCL to abend and see how it works. It worked the same way as you explained. _________________ Ranga
*****
None of us is as smart as all of us - Ken Blanchard |
|
Back to top |
|
 |
|
|