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
 
How to merge the dataset name

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to merge the dataset name
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

Moderator Team Head


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

PostPosted: Wed Feb 08, 2006 4:26 pm    Post subject: Re: How to merge the dataset name
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

Moderator Team Head


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

PostPosted: Wed Feb 08, 2006 7:48 pm    Post subject: Re: How to merge the dataset name
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    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 File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm

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