Page 1 of 1

To check if datasets exists or not..

Posted: Tue Mar 23, 2010 2:35 am
by nagesh divvela
Hi,

I will be having the list of dataset names in a dataset. The requirement is to check whether all the dataset names in the dataset are cataloged or not.

Even copying all the cataloged dataset names into one file and uncataloged datasets into another file will be a best option for me.

Can someone suggest me the best way to meet this requirement.

Regards,
Nagesh D

Posted: Tue Mar 23, 2010 2:40 am
by MrSpock
Check the entries in the catalog for each dataset the way you normally do in TSO or in other batch jobs (hint: look at Access Method Services (AMS) or at the TSO Command Reference manual).