Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Override Parameter thru my JOb

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Override Parameter thru my JOb
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

Moderator Team Head


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

PostPosted: Sat Sep 30, 2006 8:26 pm    Post subject: Re: Override Parameter thru my JOb
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    Post subject: Re: Override Parameter thru my JOb
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
No new posts Compiler option for override the exte... muralikrishnan_new COBOL Programming 9 Fri Jul 08, 2016 12:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us