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 

Can execute a PROC from another PROC?

 
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
Frankjiang
Beginner


Joined: 10 Jan 2004
Posts: 17
Topics: 10
Location: england

PostPosted: Sun Feb 01, 2004 1:10 pm    Post subject: Can execute a PROC from another PROC? Reply with quote

Can you execute a PROC from another PROC?

Thanks
_________________
franklin
Back to top
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Sun Feb 01, 2004 4:49 pm    Post subject: Reply with quote

Yes, you can, up to 15 levels.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B631/5.3?DT=20030423085347
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
Anovice
Beginner


Joined: 18 Feb 2004
Posts: 12
Topics: 2

PostPosted: Wed Feb 18, 2004 11:54 pm    Post subject: Reply with quote

As Mervyn has put it - upto 15 levels of nesting is allowed.


But it would be a nightmare when a proc has too many nestings particularly when we have ddname overrides in a JCL. One has to code all the proc stepnames (such as //PSTEP10.P1STEP10.P2STEP10...) for the ddname override. Also it may become quite complex when we have to use condition codes. I would not prefer nested procs. At present Iam unable to think of other situations where it would lead to complications.
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