IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Variable DDname in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sangramkesari_das

New User


Joined: 30 Mar 2006
Posts: 5

PostPosted: Fri Nov 12, 2010 12:30 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Nov 12, 2010 12:33 am
Reply with quote

NO!
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Nov 12, 2010 12:39 am
Reply with quote

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
View user's profile Send private message
sangramkesari_das

New User


Joined: 30 Mar 2006
Posts: 5

PostPosted: Fri Nov 12, 2010 12:46 am
Reply with quote

Thank you..
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Nov 12, 2010 12:47 am
Reply with quote

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
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Tue Dec 07, 2010 6:01 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top