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 

Ovrriding a Step inside a 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
syandra
Beginner


Joined: 26 May 2003
Posts: 19
Topics: 6

PostPosted: Thu Jan 20, 2005 12:02 am    Post subject: Ovrriding a Step inside a proc Reply with quote

Hi ,

I have a JCL which calls a proc PROC1. PROC1 inturn calls PROC2, by overriding few steps in PROC2. Can anyone please do help me in overriding these steps from the JCL as I am not supposed to modify the procs.



Thanks & Regards
Sukumar
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu Jan 20, 2005 12:23 am    Post subject: Reply with quote

Syandra,

This is a very common question. I believe there are lots of posts here for proc overrides. Please search before posting.

Anyway, what kind of override do you want ? Do you want to change the input files for a particular step / Suppress a particular step in the proc from running / Change the DCB/STORCLAS for a set of output datasets ?

Please provide full information on what you need.

Here are few samples that could help you.
Code:

//JOBCARD
//*
//STEP1     EXEC   PROC1
//*
//STEP2     EXEC   PROC2
//*
//R010.STEPLIB DD DSN=MY.NEW.LOAD,
//             DISP=SHR
//R010.INPUT   DD  DSN=MY.NEW.INPUT.FILE,
//             DISP=SHR
//R010.OUTPUT DD SPACE=(CYL,(newprim, newsec),RLSE)


Here I've shown three different overrides,
1. Override to the Load library for Step R010 in PROC2
2. Change the input file to Step R010 in PROC2
3. Increase the SPACE parameter for the output file generated in R010 of PROC2.

Hope these helps,

Thanks,
Phantom
Back to top
View user's profile Send private message
syandra
Beginner


Joined: 26 May 2003
Posts: 19
Topics: 6

PostPosted: Thu Jan 20, 2005 12:47 am    Post subject: Reply with quote

Phantom,

Thaanks for the Quick response.

My exact reqirement is

Quote:

//JOBCARD
//*
//STEP1 EXEC PROC1
//*

Here the JCL calls PROC1

here goes PROC1
Quote:

//PROC1 PROC
//STEP2 EXEC PROC2
//*
//R010.DDNAME DD DSN=MY.NEW.DDNAME,
// DISP=SHR


In the above PROC1, we can see PROC1 is calling PROC2 with input file override.
In our shop we are not supposed to modify the PROCS. So I need to write a JCL which can override the R010.DDNAME input file

Reminder: JCL calls only PROC1
Back to top
View user's profile Send private message
syandra
Beginner


Joined: 26 May 2003
Posts: 19
Topics: 6

PostPosted: Fri Jan 21, 2005 8:03 am    Post subject: Reply with quote

Hi all,

We cannot override the nested procs, more than one level deep...


Thanks,
Sukumar
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