Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10327
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: 1777
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: 445
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 LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm
No new posts Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us