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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top