IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Override Parameter thru my JOb


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mull

New User


Joined: 21 Sep 2006
Posts: 15
Location: india

PostPosted: Sat Sep 30, 2006 6:37 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Sep 30, 2006 8:26 pm
Reply with quote

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
View user's profile Send private message
mull

New User


Joined: 21 Sep 2006
Posts: 15
Location: india

PostPosted: Sat Sep 30, 2006 8:57 pm
Reply with quote

Thanks for the reply.
i also thought so.
but it is an existing production case thats why.
Back to top
View user's profile Send private message
SumanM

New User


Joined: 24 Sep 2006
Posts: 9
Location: CALCUTTA

PostPosted: Mon Oct 02, 2006 11:40 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top