View previous topic :: View next topic
|
Author |
Message |
VIJAYOOTY Warnings : 1 New User
Joined: 13 Mar 2005 Posts: 5 Location: bangalore
|
|
|
|
my job has 5 steps.
out of which i had by passed the 4th step.
i had coded cond=0,EQ in 5th step
will the step execute r not?
since step 4 has been bypassed give me suggestion? |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi VIJAYOOTY,
Since 4th job is bypassed the 5th job will not be executed. |
|
Back to top |
|
|
appasi
New User
Joined: 12 Dec 2005 Posts: 20 Location: Bangalore
|
|
|
|
Hi VIJAYOOTY,
when you have mentioned the COND = 0,EQ in 5th step
and as you mentioned 4th step is bypassed, so
5th step will not be executed.
Correct me if i am wrong |
|
Back to top |
|
|
sunish
New User
Joined: 23 May 2005 Posts: 19
|
|
|
|
hi
the 5th step will execute because it will look for the 3 rd step |
|
Back to top |
|
|
Candy
New User
Joined: 09 Dec 2005 Posts: 16
|
|
|
|
5th step will not be executed.. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Where I went to school, COND=(0,EQ) meant: "if ANY previous step issues a RC of zero, DON'T execute this step". |
|
Back to top |
|
|
VIJAYOOTY Warnings : 1 New User
Joined: 13 Mar 2005 Posts: 5 Location: bangalore
|
|
|
|
hi
thanks 4 u all ur valuable suggestions.
vijay |
|
Back to top |
|
|
tarunflash
New User
Joined: 15 Oct 2005 Posts: 25
|
|
|
|
5th get excutes.
because you have given cond code as cond=(0,eq) means this step gets bypaseed if previous step has a return code zero.
since the previous step was not executed it will not have return code zero.so 5th step will get executed. |
|
Back to top |
|
|
Ramya A
Active User
Joined: 26 Jul 2004 Posts: 104
|
|
|
|
If there is no specific step name in the condition statement, it will look for the RC of the previous step that executed..in this case Step 3. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
A COND code w/no step mentioned means that **ANY** step issuing the RC will satisfy the condition. |
|
Back to top |
|
|
sandeep4u
New User
Joined: 12 Aug 2005 Posts: 32
|
|
|
|
Hi,
I think 5th step will executed as it will take RC of step 3. and bypassed step has no RC i.e. not equal to 0.
Correct me if wrong.......
Thanks..........
sandy |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Dear Sandy,
Firstly as mentioned by Jack earlier
A COND code w/no step mentioned means that **ANY** step issuing the RC will satisfy the condition.
Secondly why cant we test & run a sample job ourself to check such type of queries...Despite...I think....
Regards,
Priyesh. |
|
Back to top |
|
|
kumar_ngl Warnings : 1 New User
Joined: 05 Aug 2005 Posts: 50 Location: chennai
|
|
|
|
hi tell me is this ryt or wrong ....
//step1 exec pgm=kkkk
//step2 exec pgm=fffff
//step3 exec pgm=hhhh
//step4 exec pgm=jjjj, cond=(0,EQ)
//step5 exec pgm=llll
if any of the step prior to step 4 return o then step4 will not be executed ,as well as the step 5
but if the code is //step4 exec pgm=jjjj, cond=(0,EQ,step3)
then the step4 only bypassed n the step 5 will get executed...am i ryt
kumar.p.v |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Quote: |
//step1 exec pgm=kkkk
//step2 exec pgm=fffff
//step3 exec pgm=hhhh
//step4 exec pgm=jjjj, cond=(0,EQ)
//step5 exec pgm=llll
if any of the step prior to step 4 return o then step4 will not be executed ,as well as the step 5 |
STEP4 will be FLUSHED but STEP5 will execute normally. Because condition parameter at STEP4 is meant to prevent execution of STEP4 if any of the previous RC=0.
Quote: |
but if the code is //step4 exec pgm=jjjj, cond=(0,EQ,step3)
then the step4 only bypassed n the step 5 will get executed...am i ryt |
Yes you are right here...STEP5 will get executed.
Regards,
Priyesh. |
|
Back to top |
|
|
Suryanarayana.tadala
New User
Joined: 03 Nov 2005 Posts: 43 Location: St.Louis
|
|
|
|
Step 5 will be executed as there is no specific step name in the condition statement, it will look for the RC of the previous step that executed..in this case Step 3.
correct me if i am wrong |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
STEP5'S COND CODE STATES (in ENGLISH, not computerese):
"If ANY previous step issues a RC of ZERO, **DON'T** execute this (the 5th) step."
If, on the other hand, NONE of them issue an RC of zero, THEN, and ONLY then, will step5 execute. |
|
Back to top |
|
|
rajesh_1183
Active User
Joined: 24 Nov 2005 Posts: 121 Location: Tadepalligudem
|
|
|
|
since the cond parameter is not specified at 5th step..does it checks whether the previous steps executed or not.....
Rajesh |
|
Back to top |
|
|
anilbatta
New User
Joined: 13 Nov 2005 Posts: 22
|
|
|
|
Hi
Suppose if you don't specify the COND parameter at all in the entire JCL then, JCL will execute the steps one by one. If this not the case, suppose
At 5th step, u have given COND parameter, specifying not to execute from 6th step onwards, then JCL will process your request according to that and stops executing the rest of the steps. This is all related to the conditions you specify in the COND parameter.
Regards
Anilbatta |
|
Back to top |
|
|
|