View previous topic :: View next topic
|
Author |
Message |
shreya19
New User
Joined: 13 Mar 2014 Posts: 34 Location: USA
|
|
|
|
I have a dataset contents of which are 2 dataset names.
I want to use these dataset names in another JCL as input dataset 1 and 2.
Any suggestions on how this can be achieved? |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 730 Location: Denmark
|
|
|
|
It depends on how they appear. If they are like a JCL SET statement and they are in a pds member then you can use the JCLLIB statement to allocate the dataset and the INCLUDE statement to, well, include them.
Otherwise you have to use some sort of program to read the dataset and generate the JCL. You could do it in an ISPF skeleton through a )REXX block.
Or use a TSO REXX batch step to allocate the datasets and run the program needing those datasets. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2133 Location: USA
|
|
|
|
shreya19 wrote: |
I have a dataset contents of which are 2 dataset names.
I want to use these dataset names in another JCL as input dataset 1 and 2.
Any suggestions on how this can be achieved? |
The most correct approach should be: avoiding the pass of DSNAMEs via another dataset. This is a non-mainframe ideology, it adds no benefits except disadvantages to the whole project. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
Back to top |
|
|
|