List of dataset names as dd input



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

List of dataset names as dd input

Postby Me12345 » Wed Jul 22, 2015 11:43 pm

Hi,
I would like to know if anyone knows of a way to use a dataset that contains the names of multiple other datasets as an input for a dd statement. As a simple example I have a dataset that contains a list of 2000 other dataset names that I want to use as input list for a job that merges all the contents of the 2000 datasets into 1. I can do it with with third party scheduling and automation products and with rexx but I want to know if anyone knows of a way to do it with standard ibm utilities or general jcl?
Regards,
Me
Me12345
 
Posts: 1
Joined: Wed Jul 22, 2015 11:32 pm
Has thanked: 0 time
Been thanked: 0 time

Re: List of dataset names as dd input

 

Re: List of dataset names as dd input

Postby steve-myers » Thu Jul 23, 2015 3:32 am

No.
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: List of dataset names as dd input

Postby Robert Sample » Thu Jul 23, 2015 3:47 am

There is a limit to the number of DD statements that can be present in a job; depending upon your site parameters, 2000 file allocations in a job or TSO session could exceed that limit. If this is the case, there is no standard JCL nor utility that could possibly do what you want. In such a case, you'd have to use dynamic allocation for each data set, then free the data set after the close before allocating the next data set -- or you'd run into the DD limit again.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post