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 

Need to override the PROC step.

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


Joined: 23 Feb 2006
Posts: 5
Topics: 4

PostPosted: Thu Mar 02, 2006 5:22 am    Post subject: Need to override the PROC step. Reply with quote

I have two Procs.

For Ex: PROC1 & PROC2.

PROC1 is intern calling the PROC2.

PROC1 is getting exectued in JCL.

I want to overrite the PROC2's step through the JCL.

How to overrite the step of PROC2 through the JCL.
Back to top
View user's profile Send private message Send e-mail
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Mar 02, 2006 7:10 am    Post subject: Reply with quote

Please review the documentation on Modifying Nested Procedures.
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Thu Mar 02, 2006 7:12 am    Post subject: Reply with quote

Kirankumargupt,

Try this example:

If u have two catalog procedures say PROC1 and PROC2 in two members say PROC1 and PROC2 and the JCL which executes PROC1 looks like

Code:

//JOBCARD
//PROCLIB JCLLIB ORDER=(SHEKAR.EXAMPLES.TEST)
//STEP0100 EXEC PROC1
//


PROC1

Code:

//PROC1    PROC
//STEP0100 EXEC  PROC2


PROC2

Code:

//PROC2    PROC                           
//STEP0100 EXEC PGM=IEBGENER             
//SYSUT1   DD DSN=SHEKAR.TEST.IN,DISP=SHR
//SYSUT2   DD DSN=SHEKAR.TEST.OUT,DISP=SHR
//SYSPRINT DD SYSOUT=*                   
//SYSIN    DD DUMMY     


CHANGES NEEDS TO BE DONE ONLY IN PROC1 AS IT IS EXECUTING PROC2 AND SUPPOSE YOU HAVE TO OVERRIDE ONLY THE DD NAME TO SHEKAR.TEST.NEWIN

Code:

//PROC1    PROC
//STEP0100 EXEC  PROC2
//STEP0100.SYSUT1 DD DSN=SHEKAR.TEST.NEWIN,DISP=SHR


EARLIER IF SHEKAR.TEST.IN WAS HAVING THE DATA SAY

Code:

1
2
3


AND IF THE DATASET SHEKAR.TEST.NEWIN HAS THE DATA SAY

Code:

SHEKAR
1
2
3


THE OUPUT AFTER THE JCL IS RUN WILL HAVE SHEKAR.TEST.OUT AS

Code:

SHEKAR
1
2
3


_________________
Shekar
Grow Technically
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