View previous topic :: View next topic |
Author |
Message |
kavi Beginner
Joined: 15 Sep 2006 Posts: 64 Topics: 22
|
Posted: Fri Oct 03, 2008 10:21 am Post subject: Override Proc Step PARM parameter |
|
|
Hi all
Is there any way to override the PARM parameter in the Step of the PROC from Job.
Thanks
Kavi |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Fri Oct 03, 2008 10:57 am Post subject: |
|
|
kavi,
Define the parm as symbolic in the proc and override it in the jcl
ex:
Here is PM is the symbolic parm you want to override
Code: |
//MYPROC PROC PM='STOPAFT=1'
//STEP1 EXEC PGM=ICEMAN,PARM=('&PM')
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=some dataset,
// DISP=SHR
//SORTOUT DD SYSOUT=*
//SYSIN DD DSN=sort.control.card dataset,
// DISP=SHR
//*
// PEND
//STEP0100 EXEC MYPROC,PM='STOPAFT=10'
|
Hope this helps...
Cheers
Kolusu |
|
Back to top |
|
 |
kavi Beginner
Joined: 15 Sep 2006 Posts: 64 Topics: 22
|
Posted: Fri Oct 03, 2008 11:32 am Post subject: |
|
|
Thanks Kolusu it works.
If suppose i already passed parm in the Proc step without symbolic parameter, is there any way to override it from JCL. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Fri Oct 03, 2008 11:52 am Post subject: |
|
|
kavi,
Quote: |
If suppose i already passed parm in the Proc step without symbolic parameter, is there any way to override it from JCL. |
Works. check jsharon1248's example below
Kolusu
Last edited by kolusu on Fri Oct 03, 2008 5:41 pm; edited 1 time in total |
|
Back to top |
|
 |
kavi Beginner
Joined: 15 Sep 2006 Posts: 64 Topics: 22
|
Posted: Fri Oct 03, 2008 1:37 pm Post subject: |
|
|
Thanks Kolusu. |
|
Back to top |
|
 |
jsharon1248 Intermediate
Joined: 08 Aug 2007 Posts: 291 Topics: 2 Location: Chicago
|
Posted: Fri Oct 03, 2008 2:37 pm Post subject: |
|
|
I think the op just wants a straight PARM override. Code it with PARM.<procstepname>='<override value'. Here's an example:
Proc
Code: | //T1 PROC
//*
//*
//DELT010A EXEC PGM=PGM1,PARM='Parm Value1'
...
//* |
Source JCL
Code: | //*
// EXEC T1,PARM.DELT010A='Override Parm Value'
//* |
Interesting thing is that the JES messages don't show the override like a step override. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Fri Oct 03, 2008 5:40 pm Post subject: |
|
|
jsharon1248,
Thanks. I should have tested before I said that it doesn't work .sorry |
|
Back to top |
|
 |
jsharon1248 Intermediate
Joined: 08 Aug 2007 Posts: 291 Topics: 2 Location: Chicago
|
Posted: Mon Oct 06, 2008 8:06 am Post subject: |
|
|
kolusu
One oversight in a bazillion posts, and you're going to apologize? Totally unnecessary. Even Michael Jordan missed a shot now and then...
 |
|
Back to top |
|
 |
|
|