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

How to merge the dataset name


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

New User


Joined: 08 Feb 2006
Posts: 4

PostPosted: Wed Feb 08, 2006 12:57 pm
Reply with quote

for example,

I have a dataset name ABC.XYZ.&DATE

and &DATE is got from the dataset which is generated in previous step, e.g the content in the dataset is 'D060101'

so that each day I run the JCL, different dataset can be created.

Is it possible?

Thanks.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Feb 08, 2006 4:26 pm
Reply with quote

It's possible only if you intend to dynamically allocate the dataset from within a program.

From a purely JCL perspective, the step that creates the value for &DATE would have to store that value, and either:

1. Dynamically build and submit the next job which will use that value.
-or-
2. Store that value in a library, so the second job can then use that value.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Feb 08, 2006 7:48 pm
Reply with quote

It would be nice to see a realistic sample of what you are trying to do.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Free space of a mulitvolume PS datase... TSO/ISPF 7
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts Avoid job abend on dataset held by us... JCL & VSAM 6
No new posts Identify Number of Multivolume Dataset All Other Mainframe Topics 5
No new posts JCL to merge two files side by side DFSORT/ICETOOL 3
Search our Forums:


Back to Top