Directory

PURPOSE:  The DIRECTORY command displays the names and object types of the objects contained in the current Data Base Library.  The name of the associated Schema Definition is displayed for each Data Set, and the name of the associated Data Set is displayed for each Data Index.  It is also possible to display the names of all Data Sets associated with a specific Schema Definition and the names of all Data Indexes associated with a specific Data Set.

SYNTAX

DIRECTORY [OF \object_types\] [OF object_types\names\] [DS OF SD \names\] 

[in DBL name] [DI OF DS \names\ IN DBL name]

DIRECTORY

with no options displays the object types and names of all objects contained in the current Data Base Library.

OF \\object_types\\

displays the names of all objects of the specified types.  Multiple object types are separated by commas.  Object types allowed are:  CF, CM, CS, DBL, DI, DS, FS, GS, ID, PM, SD, SF, SI.

\\names\\

displays the object types and names of the objects specified.  This is a useful way to quickly ascertain the existence of particular objects.

DS OF SD [in DBL name]

displays the names of all Data Sets associated with the specified Schema Definitions.

DI OF DS [in DBL name]

displays the names of all Data Indexes that are associated with the specified Data Sets.

EXAMPLE

*DIRECTORY
TYPE NAME
DBL BOOKS
SD  AUTHORS_DBM2
SD  BOOKS_DBM2
SD  DISCOUNTS_DBM2
SD  PUBLISHERS_DBM2
SD  ROYALTIES_DBM2
SD  STORES_DBM2
SD  SALES_DBM2
DS  AUTHORS_DBM2 SD AUTHORS_DBM2
DS  BOOKS_DBM2 SD BOOKS_DBM2
DS  DISCOUNTS_DBM2 SD DISCOUNTS_DBM2
DS  PUBLISHERS_DBM2 SD PUBLISHERS_DBM2
DS  ROYALTIES_DBM2 SD ROYALTIES_DBM2
DS  STORES_DBM2 SD STORES_DBM2
DS  SALES_DBM2 SD SALES_DBM2
DI  AUTHORS_DBM2 DS AUTHORS_DBM2
DI  BOOKS_DBM2 DS BOOKS_DBM2
DI  DISCOUNTS_DBM2 DS DISCOUNTS_DBM2
DI  PUBLISHERS_DBM2 DS PUBLISHERS_DBM2
DI  ROYALTIES_DBM2 DS ROYALTIES_DBM2
DI  STORES_DBM2 DS STORES_DBM2
DI  SALES_DBM2 DS SALES_DBM2
CF  SALES_DBM2 DS SALES_DBM2
PM  UPDATE_SALES_DBM2
PM  YTD_SALES_DBM2
PM  QUICK_REP
CM  UPDATE_SALES_DBM2
CM  YTD_SALES_DBM2
CM  QUICK_REP
CS  CONVERT_DATE
SI  YTD_SALES_DBM2.RD
*DIRECTORY OF PM
TYPE NAME
PM  UPDATE_SALES_DBM2
PM  YTD_SALES_DBM2
PM  QUICK_REP
*DIRECTORY OF DBL, CS
TYPE NAME
DBL  BOOKS
CS  CONVERT_DATE

NOTES:  Additional information for DBL object is available by accessing the DBL in a Process Module.  See the RELATE and GET statements in a Process Module for more information on how to access these fields.