CATALOG Procedure

CONTENTS Statement

Lists the contents of a catalog in the procedure output or writes a list of the contents to a SAS data set, an external file, or both.
Note: ENTRYTYPE= (ET=) option is not available for the CONTENTS statement.
Displaying Contents, Changing Names, and Changing a Description

Syntax

Without Arguments

The output is sent to the procedure output.

Optional Arguments

CATALOG=<libref.>catalog
specifies the SAS catalog to process.
Alias:CAT=, C=
Default:None
FILE=fileref
sends the contents to an external file, identified with a SAS fileref.
Interaction:If fileref has not been previously assigned to a file, then the file is created and named according to operating environment-dependent rules for external files.
OUT=SAS-data-set
sends the contents to a SAS data set. When the statement executes, a message on the SAS log reports that a data set has been created. The data set contains six variables in the following order:
LIBNAME
the libref
MEMNAME
the catalog name
NAME
the names of entries
TYPE
the types of entries
DESC
the descriptions of entries
DATE
the dates entries were last modified.