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

If 4th step Bypassed what happened to 5th when cond=0,EQ


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

New User


Joined: 13 Mar 2005
Posts: 5
Location: bangalore

PostPosted: Mon Dec 26, 2005 10:56 am
Reply with quote

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
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Mon Dec 26, 2005 2:46 pm
Reply with quote

Hi VIJAYOOTY,
Since 4th job is bypassed the 5th job will not be executed.
Back to top
View user's profile Send private message
appasi

New User


Joined: 12 Dec 2005
Posts: 20
Location: Bangalore

PostPosted: Mon Dec 26, 2005 5:15 pm
Reply with quote

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
View user's profile Send private message
sunish

New User


Joined: 23 May 2005
Posts: 19

PostPosted: Mon Dec 26, 2005 5:58 pm
Reply with quote

hi

the 5th step will execute because it will look for the 3 rd step
Back to top
View user's profile Send private message
Candy

New User


Joined: 09 Dec 2005
Posts: 16

PostPosted: Mon Dec 26, 2005 6:04 pm
Reply with quote

5th step will not be executed..
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Dec 26, 2005 11:15 pm
Reply with quote

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
View user's profile Send private message
VIJAYOOTY
Warnings : 1

New User


Joined: 13 Mar 2005
Posts: 5
Location: bangalore

PostPosted: Tue Dec 27, 2005 8:49 pm
Reply with quote

hi

thanks 4 u all ur valuable suggestions.

vijay
Back to top
View user's profile Send private message
tarunflash

New User


Joined: 15 Oct 2005
Posts: 25

PostPosted: Tue Dec 27, 2005 9:12 pm
Reply with quote

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
View user's profile Send private message
Ramya A

Active User


Joined: 26 Jul 2004
Posts: 104

PostPosted: Wed Dec 28, 2005 1:02 am
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Dec 28, 2005 5:04 am
Reply with quote

A COND code w/no step mentioned means that **ANY** step issuing the RC will satisfy the condition.
Back to top
View user's profile Send private message
sandeep4u

New User


Joined: 12 Aug 2005
Posts: 32

PostPosted: Wed Dec 28, 2005 12:05 pm
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Wed Dec 28, 2005 12:33 pm
Reply with quote

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
View user's profile Send private message
kumar_ngl
Warnings : 1

New User


Joined: 05 Aug 2005
Posts: 50
Location: chennai

PostPosted: Wed Dec 28, 2005 12:46 pm
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Wed Dec 28, 2005 12:54 pm
Reply with quote

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
View user's profile Send private message
Suryanarayana.tadala

New User


Joined: 03 Nov 2005
Posts: 43
Location: St.Louis

PostPosted: Wed Dec 28, 2005 3:00 pm
Reply with quote

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 icon_arrow.gif
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Dec 29, 2005 7:46 am
Reply with quote

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
View user's profile Send private message
rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Thu Dec 29, 2005 5:06 pm
Reply with quote

since the cond parameter is not specified at 5th step..does it checks whether the previous steps executed or not.....

icon_idea.gif Rajesh icon_idea.gif
Back to top
View user's profile Send private message
anilbatta

New User


Joined: 13 Nov 2005
Posts: 22

PostPosted: Thu Dec 29, 2005 5:30 pm
Reply with quote

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
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 Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
Search our Forums:

Back to Top