Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: If 4th step Bypassed what happened to 5th when cond=0,EQ
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: 680
Location: NJ

PostPosted: Mon Dec 26, 2005 2:46 pm    Post subject: JCL
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    Post subject:
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    Post subject: Re: If 4th step Bypassed what happened to 5th when cond=0,EQ
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    Post subject: Re: If 4th step Bypassed what happened to 5th when cond=0,EQ
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    Post subject:
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    Post subject: Re: If 4th step Bypassed what happened to 5th when cond=0,EQ
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    Post subject: Re: If 4th step Bypassed what happened to 5th when cond=0,EQ
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    Post subject:
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    Post subject:
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    Post subject: Re: If 4th step Bypassed what happened to 5th when cond=0,EQ
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: 1452
Location: Chicago, IL

PostPosted: Wed Dec 28, 2005 12:33 pm    Post subject: Re: If 4th step Bypassed what happened to 5th when cond=0,EQ
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    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Wed Dec 28, 2005 12:54 pm    Post subject: Re: If 4th step Bypassed what happened to 5th when cond=0,EQ
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    Post subject: Re: If 4th step Bypassed what happened to 5th when cond=0,EQ
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    Post subject:
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    Post subject:
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    Post subject:
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    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 Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts COND parameter vs IF THEN ELSE Alks JCL & VSAM 11 Fri Jun 17, 2016 5:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us