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
 

 

How to excute and bypass the step in two jobs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sonasheetal

New User


Joined: 08 Jun 2005
Posts: 27

PostPosted: Wed Jun 08, 2005 4:28 pm    Post subject: How to excute and bypass the step in two jobs
Reply with quote

I have a 2 jobs job A and job B.both are calling
same proc.but in job A i want to execute all the
steps but job B i want to by pass the 3rd step.how?
Back to top
View user's profile Send private message

sonasheetal

New User


Joined: 08 Jun 2005
Posts: 27

PostPosted: Wed Jun 08, 2005 4:43 pm    Post subject: Re: How to excute and bypass the step in two jobs
Reply with quote

You can achieve this by using conditional codes of previous step.


Job A : step10 : explicitly set some return code in this step say rc = 4/8/12..
.........
.........
step50 proc a
procstep20...Execute only if rc(step10) is 4....
Back to top
View user's profile Send private message
Deepa.m
Warnings : 1

New User


Joined: 28 Apr 2005
Posts: 99

PostPosted: Wed Jun 08, 2005 6:36 pm    Post subject:
Reply with quote

in the job B give COND.STEP03=(0,LE).

THIS WILL BYPASS ONLY STEP03 IN JOB B
Back to top
View user's profile Send private message
shannu

New User


Joined: 01 Jun 2005
Posts: 17
Location: bangalore

PostPosted: Thu Jun 09, 2005 9:42 am    Post subject:
Reply with quote

Hi,

I think after this to execute 4th step you need to specify..

In the job b cond.step04=even.

This will execute step 4 even if the previous step normally or abnormally terminates.


Thanks,
Shannu.
Back to top
View user's profile Send private message
sree_2503

New User


Joined: 22 May 2005
Posts: 12
Location: Chennai,India

PostPosted: Thu Jun 09, 2005 11:48 am    Post subject:
Reply with quote

Hi Shannu,

I dont think to execute 4th step after u bypass the 3rd step, u need to specify the cond=even param.
Back to top
View user's profile Send private message
Sangram

New User


Joined: 08 Jun 2005
Posts: 7

PostPosted: Thu Jun 09, 2005 12:51 pm    Post subject:
Reply with quote

Sree is right. No need for cond=even for the fourth step. It will be executed once step 3 is skipped.
Back to top
View user's profile Send private message
sonasheetal

New User


Joined: 08 Jun 2005
Posts: 27

PostPosted: Thu Jun 09, 2005 2:31 pm    Post subject: Thanks for ur reply
Reply with quote

Thanks lot for all your quick reply.

Bye
Sonasheetal.
Back to top
View user's profile Send private message
lostprophet

New User


Joined: 14 Jan 2007
Posts: 2
Location: india

PostPosted: Sat Feb 03, 2007 1:47 pm    Post subject: How to control job steps
Reply with quote

I have 15 job steps, i want to execute only step 11 and step 12. Now my
query is i can execute steps 11 and 12 by using step Restart but how can
i stop executing beyond step 12, i.e i dont want execution beyond step 12.
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: Sun Feb 04, 2007 12:11 am    Post subject:
Reply with quote

Hello,

To keep the steps that follow step12 from executing, use a COND override for each step that is (0,LE).

This will prevent each overridden step from executing. Zero is less than or equal to every possible condition code, so specifying (0,LE) will ensure that the step does not execute.

Sonasheetal,

From your original thread -

To do what you want, you can use this technique also. Run job A as usual. When you run job B, override the the step(s) you want to bypass with the (0,LE) condition code test.
Back to top
View user's profile Send private message
lostprophet

New User


Joined: 14 Jan 2007
Posts: 2
Location: india

PostPosted: Sun Feb 04, 2007 10:19 am    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

To keep the steps that follow step12 from executing, use a COND override for each step that is (0,LE).

This will prevent each overridden step from executing. Zero is less than or equal to every possible condition code, so specifying (0,LE) will ensure that the step does not execute.



Thank you dick scherrer for ur quick reply
is there any other method to achieve this apart from using COND(0,LE)


Lostprophet


Sonasheetal,

From your original thread -

To do what you want, you can use this technique also. Run job A as usual. When you run job B, override the the step(s) you want to bypass with the (0,LE) condition code test.
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: Sun Feb 04, 2007 11:45 am    Post subject:
Reply with quote

Hi LP,

Other than the condition code, what would you prefer?

Checking condition code(s) is the normal method used to control whether a step is executed or bypassed.
Back to top
View user's profile Send private message
a69356

New User


Joined: 01 Dec 2006
Posts: 21
Location: Gurgaon

PostPosted: Thu Mar 15, 2007 2:50 pm    Post subject: Re: How to excute and bypass the step in two jobs
Reply with quote

I think Cond parameter is (0,GT) instead of (0,LE) .
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Mar 15, 2007 3:40 pm    Post subject: Re: How to excute and bypass the step in two jobs
Reply with quote

They both work perfectly. Same result different method.
Back to top
View user's profile Send private message
jonnavarapu786

New User


Joined: 28 Mar 2007
Posts: 2
Location: noida

PostPosted: Fri Mar 30, 2007 3:45 pm    Post subject: HI ,
Reply with quote

Answer for the below ? was....

Just insert a null card after the 12th step. i.e just give a //.
it will solve ur problem, I think no need to think that much offffffff....

I have 15 job steps, i want to execute only step 11 and step 12. Now my query is i can execute steps 11 and 12 by using step Restart but how can i stop executing beyond step 12, i.e i dont want execution beyond step 12.
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: Fri Mar 30, 2007 11:50 pm    Post subject:
Reply with quote

Hello,

Use condition code test suggested above.

When you specify the restart, you can also override the condition code testing for the steps you do not want to run.
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 Determine Region with max bandwidth f... seahawk789 COBOL Programming 3 Mon Feb 27, 2017 8:26 pm
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 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


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