OVERRIDING PARM Parameter from JCL



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

OVERRIDING PARM Parameter from JCL

Postby fornanthakumar » Sun Nov 14, 2010 4:19 am

Hi,

I have coded JCL like below which calls the PROC NEWWREXX

//CHN0XJCL JOB ...
// JCLLIB ORDER=CHN0.SDSF.APPS                   
//EXECREXX EXEC NEWWREXX


NEWWREXX PROC coded like below (Which is executing another PROC REXXEXE1)

//NEWWREXX PROC
//REXXEXEC EXEC REXXEXE1


REXXEXE1 coded like below

//REXXEXE1 PROC
//REX01#06 EXEC PGM=IKJEFT01,DYNAMNBR=20,PARM='NEWREXX'


Now, I wanted change this PARM='NEWREXX' to PARM='UPDREXX'. I should overwrite this PARM value from JCL and should not edit above two PROC. Is that possible?
I have tried with:

PARM.REX01#06='UPDREXX' --> its is fine for first level PROC but in my case i have two level PROC.

Please help me out on this.

PS: I have posted the sample code here instead of Production code. The reason for calling the second level PROC is, Its a common PROC will process the DATA wise information. The first level PROC will extract the data from DB2 and call the second level PROC for processing.
Regards,
Nanthu.Y.
fornanthakumar
 
Posts: 70
Joined: Fri Oct 22, 2010 1:58 pm
Has thanked: 0 time
Been thanked: 0 time

Re: OVERRIDING PARM Parameter from JCL

 

Re: OVERRIDING PARM Parameter from JCL

Postby expat » Mon Nov 15, 2010 3:57 pm

Multi layer PRCS should only be used by people who know what they are doing when they construct PROCS for inclusion by other PROCS.

They can be real pigs to override and/or restart.
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time

Re: OVERRIDING PARM Parameter from JCL

Postby prino » Mon Nov 15, 2010 9:44 pm

It's much better to use INCLUDE MEMBER=XXXXXX, when IBM allowed nested proc's they never really thought about the consequences...
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 536
Joined: Wed Mar 11, 2009 12:22 am
Location: Oostende, Belgium
Has thanked: 3 times
Been thanked: 21 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post