Over ride all the proc with symbolic parameter at once



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

Over ride all the proc with symbolic parameter at once

Postby rajaranganathan » Thu Apr 03, 2014 11:24 pm

Hi All,

I take this opportunity to thank all of you for your help and sharing knowledge.


I have scenario in which I'm submitting JCL with more then 15 Proc and each has a same symbolic parameters as given below. symbolic parameter pmpmn has een get override in each proc in JCl1, but my requirement is to over ride pmpmn in before even calling step1 so that it can be passed/override to all the procs. Is there any such options ? if so , could you please given me an syntax and an example.

JCL 1:
step1 exec proc1,
pmpmn='tpmpm.n'

step2 exec proc2
pmpmn='tpmpm.n'

step3 exec proc3
pmpmn='tpmpm.n'

step4 exec proc4
pmpmn='tpmpm.n'

step5 exec proc5
pmpmn='tpmpm.n'
.................
................
stepn exec procn
pmpmn='tpmpm.n'

Thanks
Raja.R
rajaranganathan
 
Posts: 27
Joined: Thu Oct 10, 2013 6:44 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Over ride all the proc with symbolic parameter at once

Postby Robert Sample » Fri Apr 04, 2014 1:10 am

Have you tried the SET statement in your JCL?
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Over ride all the proc with symbolic parameter at once

Postby rajaranganathan » Fri Apr 04, 2014 11:49 pm

Hi Robert,

yes I have tried the set parameter, but that applies only to the first Proc not to all the 15 Procs.

Please advise.


Thanks
Raja.R
rajaranganathan
 
Posts: 27
Joined: Thu Oct 10, 2013 6:44 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Over ride all the proc with symbolic parameter at once

Postby NicC » Sat Apr 05, 2014 1:37 pm

Works on all procs for me.
// SET DKJHFJK=SJH
//EXEC1 EXEC PROC01
//EXEC2 EXEC PROC02
:
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post