View previous topic :: View next topic
|
Author |
Message |
sangramkesari_das
New User
Joined: 30 Mar 2006 Posts: 5
|
|
|
|
Hi,
Can we have variable DDname in Proc.
Temp1 DD DSN=X.&Y.&Z
Temp2 DD DSN=X.&Y.&Z
As per my requirement only the DDNAME will change. It will change from Temp1 to Temp2 |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
NO! |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
You cannot use a symbolic parameter as a step name or DD name. You can, however, use ISPF file tailoring or equivalent to choose the name. |
|
Back to top |
|
|
sangramkesari_das
New User
Joined: 30 Mar 2006 Posts: 5
|
|
|
|
Thank you.. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
As per my requirement only the DDNAME will change. |
Why does someone believe this is a requirement?
Post the jcl from the step where this is "needed". |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
You can use a symbolic to decide which of a set of DD's you use. If you specify VAR=TEMP1 the TEMP1 DD would be used, or TEMP would point to the TEMP2 DD
//X PROC VAR=
//TEMP DD DDNAME=&VAR
//TEMP1 DD *
//TEMP2 DD * |
|
Back to top |
|
|
|