|
View previous topic :: View next topic
|
| Author |
Message |
bigheadboy
New User
.jpg)
Joined: 08 Feb 2006 Posts: 4
|
|
|
|
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 |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
| It would be nice to see a realistic sample of what you are trying to do. |
|
| Back to top |
|
 |
|
|