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
 

 

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: 4648
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: 4648
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 FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts FTOPEN TEMP is failing due to dataset... mbenaud TSO/ISPF 7 Thu Jul 28, 2016 4:28 pm


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