Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Variable DDname in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Variable DDname in JCL
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Fri Nov 12, 2010 12:33 am    Post subject: Reply to: Variable DDname in JCL
Reply with quote

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

Global Moderator


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

PostPosted: Fri Nov 12, 2010 12:39 am    Post subject:
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    Post subject:
Reply with quote

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

Site Director


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

PostPosted: Fri Nov 12, 2010 12:47 am    Post subject:
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 User


Joined: 31 Dec 2009
Posts: 440
Location: London

PostPosted: Tue Dec 07, 2010 6:01 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us