Display library names and contents

You can use the Display Library (DSPLIB) or Work with Libraries (WRKLIB) command to display or print all the libraries you have authority to and find basic information on each object within the libraries.

The object information includes:

On the Display Library (DSPLIB) command, you can also specify a specific library name or names, in which case you bypass the library selection display. In this list, the objects are grouped by library; within each library, they are grouped by object type; within each type, they are listed in alphanumeric order. The order of the libraries is one of the following:

For example, the following Display Library (DSPLIB) command displays a list of the objects contained in DISTLIB:

DSPLIB  LIB(DISTLIB)  OUTPUT(*)

The asterisk (*) for the OUTPUT parameter means that the libraries are to be shown at the display station if in interactive processing and printed if in batch processing. To print a list when in interactive processing, specify *PRINT instead of taking the default *.

Related information
Display Library (DSPLIB) command
Work with Library (WRKLIB) command