View previous topic :: View next topic |
Author |
Message |
javedsk12 Beginner
Joined: 14 Dec 2007 Posts: 66 Topics: 36 Location: pune
|
Posted: Fri Jan 04, 2008 4:17 am Post subject: Procedure |
|
|
Hi
Again i have the question on procedure i have 4 steps in my proc and i want to skip 1 and 4th one. is it possible to skip like this way??if possible then how??i do not want to code any condition on my proc....what ever condition i will be coding is through my jcl.
javed _________________ javed
-----------------------
The Word Impossible it self says i am possible(im possible) |
|
Back to top |
|
|
petluri Beginner
Joined: 05 Dec 2002 Posts: 19 Topics: 5 Location: Virginia, USA
|
Posted: Fri Jan 04, 2008 8:46 am Post subject: |
|
|
You can try it the following way...
Code: | //STEP01 EXEC procname,
// COND.STEP010=(0,LE), SKIP THIS PROCSTEP
// COND.STEP030=(0,LE), SKIP THIS PROCSTEP
// COND.STEP040=(0,LE), SKIP THIS PROCSTEP
// COND.STEP045=(0,LE), SKIP THIS PROCSTEP |
|
|
Back to top |
|
|
expat Intermediate
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Sat Jan 05, 2008 3:35 am Post subject: |
|
|
BUT .................... Always put an EXEC of some kind before the PROC, such as
//DUMMY EXEC PGM=IEFBR14
if you use this technique to skip the first step of a PROC. If the PROC is the first EXEC, then the first step of the PROC will run regardless of the RC checking as it would be the first job step with no previous steps to check against. _________________ If it's true that we are here to help others,
then what exactly are the others here for ? |
|
Back to top |
|
|
vkphani Intermediate
Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Mon Jan 07, 2008 5:02 am Post subject: |
|
|
javed,
Code like below in your JCL.
Code: |
//JCLSTEP EXEC PROC,COND.STEP1=(00,LE),COND.STEP4=(00,LE)
|
|
|
Back to top |
|
|
javedsk12 Beginner
Joined: 14 Dec 2007 Posts: 66 Topics: 36 Location: pune
|
Posted: Tue Jan 08, 2008 6:09 am Post subject: procedure |
|
|
thanks to vkpani,petluri. _________________ javed
-----------------------
The Word Impossible it self says i am possible(im possible) |
|
Back to top |
|
|
|
|