View previous topic :: View next topic
|
Author |
Message |
mull
New User
Joined: 21 Sep 2006 Posts: 15 Location: india
|
|
|
|
Hi All,
If my job executes a proc which inturn call another one how do i overide a parameter in the last proc?
Below is my scenario.
my job
Code: |
//...
// JCLLIB ORDER=***********JOBS
//JDCPRES EXEC E****RAN
|
This is proc E****RAN.It calls Proc E****RA1.
How do i overide Parameter 'P' from my job.
Code: |
//E****RAN PROC
//E8752ALT EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//RESTRA DD DSN=E8888TS.RRT.TRANS.COPY,
// DISP=(MOD,DELETE,DELETE),
//E****ALM EXEC E****RA1,P='e8888'
|
This is proc E****RA1
Code: |
//E****RA1 PROC P=''
//SCAP003 EXEC PGM=IEFBR14
//DD1 DD DSN=&P.TS.**********,
// DISP=(MOD,DELETE,DELETE),
// SPACE=(TRK,(1,1),RLSE),
// UNIT=SYSALLDA
|
Thanks |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
mull wrote: |
How do i overide Parameter 'P' from my job.
|
You can't. Wouldn't this work better?
Code: |
//...
// JCLLIB ORDER=***********JOBS
//JDCPRES EXEC E****RAN,P='e9999'
//E****RAN PROC P='e8888'
//E8752ALT EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//RESTRA DD DSN=E8888TS.RRT.TRANS.COPY,
// DISP=(MOD,DELETE,DELETE),
//E****ALM EXEC E****RA1,P='&P'
|
|
|
Back to top |
|
|
mull
New User
Joined: 21 Sep 2006 Posts: 15 Location: india
|
|
|
|
Thanks for the reply.
i also thought so.
but it is an existing production case thats why. |
|
Back to top |
|
|
SumanM
New User
Joined: 24 Sep 2006 Posts: 9 Location: CALCUTTA
|
|
|
|
dear moderator,
wud u kindly make it clear to me ,
if i override the parameter in job in usual way,why will not it work?
like
Code: |
//JDCPRES EXEC E****RAN,P='e9999' |
why it will not ovverride the proc E****RAN where in turn proc E****RA1
is ovverriden??
-suman |
|
Back to top |
|
|
|