View previous topic :: View next topic |
Author |
Message |
syandra Beginner

Joined: 26 May 2003 Posts: 19 Topics: 6
|
Posted: Thu Jan 20, 2005 12:02 am Post subject: Ovrriding a Step inside a proc |
|
|
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 |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Thu Jan 20, 2005 12:23 am Post subject: |
|
|
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 |
|
 |
syandra Beginner

Joined: 26 May 2003 Posts: 19 Topics: 6
|
Posted: Thu Jan 20, 2005 12:47 am Post subject: |
|
|
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 |
|
 |
syandra Beginner

Joined: 26 May 2003 Posts: 19 Topics: 6
|
Posted: Fri Jan 21, 2005 8:03 am Post subject: |
|
|
Hi all,
We cannot override the nested procs, more than one level deep...
Thanks,
Sukumar |
|
Back to top |
|
 |
|
|