To check if datasets exists or not..

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
nagesh divvela
Posts: 16
Joined: Sun Dec 27, 2009 12:37 pm

To check if datasets exists or not..

Post by nagesh divvela » Tue Mar 23, 2010 2:35 am


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.

Nagesh D

Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Tue Mar 23, 2010 2:40 am

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).

Post Reply


Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Mainframe Interview questions

Other References
Mainframe Tools and others