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 

Expanded listing for nested procedures?

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


Joined: 22 Mar 2013
Posts: 21
Topics: 7
Location: Fort Worth, TX

PostPosted: Thu Apr 02, 2015 4:06 am    Post subject: Expanded listing for nested procedures? Reply with quote

I have to standardize some 700+ jobs and procedures for my application. I need to get a before and after listing of the completely expanded jcl without doing an actual execution. cant for the life of me figure out how to do this. I tried TYPRUN=SCAN but that only expands one level of the procedures. my batch jobs are rife with nested procedures (one procedure called from inside another procedure). any suggestions from anybody on how to get a fully expanded listing of what would be the runtime JCL?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Apr 02, 2015 10:21 am    Post subject: Re: expanded listing for nested procedures? Reply with quote

ironponygrl wrote:
I have to standardize some 700+ jobs and procedures for my application. I need to get a before and after listing of the completely expanded jcl without doing an actual execution. cant for the life of me figure out how to do this. I tried TYPRUN=SCAN but that only expands one level of the procedures. my batch jobs are rife with nested procedures (one procedure called from inside another procedure). any suggestions from anybody on how to get a fully expanded listing of what would be the runtime JCL?


ironponygrl,

Are these nested procedures all in the same library? If so they should have expanded.

Did you try to list the libraries as JCLLIB? I coded a simple nested proc. The CTMNCAL proc invokes another proc named MYPROC1 and the CKCALNDR proc invokes another proc named MYPROC2 and everything is expanded. Here is an example.

Code:

//NESTPROC JOB 'KOLUSU', 
//             CLASS=A,                     
//             MSGCLASS=H,                   
//             MSGLEVEL=(1,1),               
//             TIME=(,15),                   
//             TYPRUN=SCAN,                 
//             NOTIFY=KOLUSU                 
//*                                         
//MYLIBS   JCLLIB  ORDER=KOLUSU.TEST.PROCLIB
//*                                         
//WRKNCAL  EXEC PROC=CTMNCAL                 
//CURWRKWK EXEC PROC=CKCALNDR               


In your JESYSMSG you should have something like this for every proc that is expanded.

Code:

IEFC001I PROCEDURE CTMNCAL WAS EXPANDED USING PRIVATE LIBRARY KOLUSU.TEST.PROCLIB
....

_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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