View previous topic :: View next topic
|
Author |
Message |
pravena
New User
Joined: 31 Jan 2007 Posts: 9 Location: chennai
|
|
|
|
Hi,
how to override a symbolic parameter in a proc by a jcl.
eg :
//step1 exec jobname='zzzzz'
// file1='abc.yyyy.uuu'
//step2 exec pgm=add
//sysut1 dd dsn=&file1
.....
in a jcl how to overide the proc files or abc.yyyy.uuu
Pls let me know... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What have you tried to do, and what errors did you receive ? |
|
Back to top |
|
|
pravena
New User
Joined: 31 Jan 2007 Posts: 9 Location: chennai
|
|
|
|
Hello Expat
In the JCL i tried with SET file1='qqq.ggg.kkk' but after keeping JEM
its not replaced.
also i'm not sure of this syntax....
procstep.stepname......
but nothing worked.... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
If you use a SET, then the values originally coded within the PROC are after the SET so will be honoured. i.e. This will override the SET.
Take a look at coding something on the actual EXEC card |
|
Back to top |
|
|
nbalajibe Warnings : 1 New User
Joined: 28 Nov 2006 Posts: 75 Location: India
|
|
|
|
Quote: |
procstep.stepname...... |
This should have been procstep.ddname,
Code: |
//step1.file1 dd dsn=qqq.ggg.kkk |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
nbalajibe
If you look carefully, the override was required for STEP2.SYSUT1
In effect if coded for the correct step this would work, but is certainly not the easiest way of doing it. |
|
Back to top |
|
|
nbalajibe Warnings : 1 New User
Joined: 28 Nov 2006 Posts: 75 Location: India
|
|
|
|
expat,
Thanks for correcting me. As you said coding on the exec card would be the best option. |
|
Back to top |
|
|
pravena
New User
Joined: 31 Jan 2007 Posts: 9 Location: chennai
|
|
|
|
expat & nbalajibe,
after the exec card i gave
//STEP1.file1 DD DSN=qqq.ggg.kkk,DISP=SHR ,
it got overridden.....
thanks all for ur sugestions... |
|
Back to top |
|
|
|