by dick scherrer » Tue Jul 15, 2008 9:31 am
Hello,
In the file with the dataset names, you also need to include the information needed to catalog the dataset.
You could then read this file of dsns and associated info and generate the proper utility jcl and control statements to do what you need.
I suspect there is more to your requirement (even if you are not aware of it yet) than merely cataloging a bunch of datasets.
For example, vsam datasets are not merely cataloged. Partitioned datasets need to have directory blocks defined. All dasd datasets need lrecl and space defined. And on, and on. . .
Where did this requirement originate? If you explain just what needs to be accomplished, someone may have suggestions. This would include how these datasets would be used.
Hope this helps,
d.sch.