MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Check the condition code of procstep.procstep

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
krkcs
Beginner


Joined: 30 May 2004
Posts: 27
Topics: 5

PostPosted: Tue Mar 20, 2007 9:21 am    Post subject: Check the condition code of procstep.procstep Reply with quote

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


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Tue Mar 20, 2007 9:24 am    Post subject: Reply with quote

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


Joined: 30 May 2004
Posts: 27
Topics: 5

PostPosted: Tue Mar 20, 2007 9:33 am    Post subject: Reply with quote

thanks expat.. yes, i know that expat.. but dont know is there any other way to go about it ??
_________________
-kr
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12381
Topics: 75
Location: San Jose

PostPosted: Tue Mar 20, 2007 9:37 am    Post subject: Reply with quote

krkcs,

Code condition checking in the proc itself

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Tue Mar 20, 2007 9:38 am    Post subject: Reply with quote

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


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue Mar 20, 2007 9:39 am    Post subject: Reply with quote

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


Joined: 30 May 2004
Posts: 27
Topics: 5

PostPosted: Tue Mar 20, 2007 11:15 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group