View previous topic :: View next topic |
Author |
Message |
krkcs Beginner

Joined: 30 May 2004 Posts: 27 Topics: 5
|
Posted: Tue Mar 20, 2007 9:21 am Post subject: Check the condition code of procstep.procstep |
|
|
I have a step which executes a proc, proc has got seven steps, i need to check the condition of the seventh step, which executes a proc again.
I tried checking the condition, its abending with the jcl error.
..
..
..
//JSTEP1 EXEC JPROC
//ABNDSTEP EXEC PGM=ABNDPGM,COND=(4000,GE,JSTEP1.STEP7.GO.RC)
JROC CODE:
//JPROC PROC
//..
//..
//STEP7 EXEC SPROC
SPROC CODE:
//SPROC PROC
//GO EXEC PGM=XXX _________________ -kr |
|
Back to top |
|
 |
expat Intermediate

Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Tue Mar 20, 2007 9:24 am Post subject: |
|
|
Don't think you can do that. I believe that only one downward level of checking is allowed, i.e. the same as using over rides in JCL for PROCS. You can not over ride a PROC called within a PROC, and I'd guess that the RC checking is subject to the same restrictions. _________________ If it's true that we are here to help others,
then what exactly are the others here for ? |
|
Back to top |
|
 |
krkcs Beginner

Joined: 30 May 2004 Posts: 27 Topics: 5
|
Posted: Tue Mar 20, 2007 9:33 am Post subject: |
|
|
thanks expat.. yes, i know that expat.. but dont know is there any other way to go about it ?? _________________ -kr |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12381 Topics: 75 Location: San Jose
|
Posted: Tue Mar 20, 2007 9:37 am Post subject: |
|
|
krkcs,
Code condition checking in the proc itself
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
expat Intermediate

Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Tue Mar 20, 2007 9:38 am Post subject: |
|
|
Not sure if changing the PROC that is executed from within the first PROC to do its own RC checking on only the steps it processes might work.
I have never seen the need for another PROC imbedded into another PROC, why not just run the second PROC after the first PROC rather than imbed it, and that way you are free to over ride and CC check easily. _________________ If it's true that we are here to help others,
then what exactly are the others here for ? |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Tue Mar 20, 2007 9:39 am Post subject: |
|
|
yes - execute it as a seperate job or - less good - execute it as a level 1 procedure so your job executes 2 procedures - the first with 6 steps and the second is the proc that was step 7. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
 |
krkcs Beginner

Joined: 30 May 2004 Posts: 27 Topics: 5
|
Posted: Tue Mar 20, 2007 11:15 am Post subject: |
|
|
Thanks for all the replies/ suggestions...decided to hard code the first proc in my job and do the rest..
thank you...!! _________________ -kr |
|
Back to top |
|
 |
|
|