View previous topic :: View next topic |
Author |
Message |
kirankumargupt Beginner
Joined: 23 Feb 2006 Posts: 5 Topics: 4
|
Posted: Thu Mar 02, 2006 5:22 am Post subject: Need to override the PROC step. |
|
|
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 |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
|
Back to top |
|
 |
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Thu Mar 02, 2006 7:12 am Post subject: |
|
|
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
AND IF THE DATASET SHEKAR.TEST.NEWIN HAS THE DATA SAY
THE OUPUT AFTER THE JCL IS RUN WILL HAVE SHEKAR.TEST.OUT AS
_________________ Shekar
Grow Technically |
|
Back to top |
|
 |
|
|