View previous topic :: View next topic
|
Author |
Message |
nikyojin
New User
Joined: 05 Oct 2005 Posts: 94
|
|
|
|
Hi,
Code: |
//invc0022 dd dsn=dev1.parmlib(invc0022) |
This is the control card being used in the Proc. Is it possible to control the value of control card ie invc0022 in the above eg thru JCL. I know we can override the line completely but is there any other way out.
Known solution :-
Code: |
//stepname.invc0022 dd dsn=dev1.parmlib(invc0023) |
.
Please suggest me an alternative if it is possible. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Your question is not clear.
If you want to dynamically point to a different member name ar run time, you could define your PROCedure to use a symbolic parameter. In your PROC, the DD would be coded as
Code: |
//invc0022 dd dsn=dev1.parmlib(&mem) |
if the entirename might vary or
Code: |
//invc0022 dd dsn=dev1.parmlib(invc&num) |
if the "invc" was constant and only the number might vary.
On your execute statement, you would specify either replacement value.
Code: |
//procstep EXEC yourproc,MEM=INVC0023
or
//procstep EXEC yourproc,NUM=0023 |
depending on how you defined your DD statement. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
nikyojin wrote: |
Hi,
Code: |
//invc0022 dd dsn=dev1.parmlib(invc0022) |
This is the control card being used in the Proc. Is it possible to control the value of control card ie invc0022 in the above eg thru JCL. I know we can override the line completely but is there any other way out.
Known solution :-
Code: |
//stepname.invc0022 dd dsn=dev1.parmlib(invc0023) |
.
Please suggest me an alternative if it is possible. |
You could use
Code: |
//stepname.invc022 dd *
control card
/* |
|
|
Back to top |
|
|
nikyojin
New User
Joined: 05 Oct 2005 Posts: 94
|
|
|
|
Thanks Dick and Craq for your valuable inputs |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome - good luck |
|
Back to top |
|
|
|