Command reference / library

DSPLIB

Display Library

Displays the contents of one or more libraries, that is, a list of the names and attributes of the objects in each. An object appears in the list only if you have some authority other than *EXCLUDE to it. The command can also list libraries so that one can be selected to display its objects; that list shows each library's name, type, ASP device name, and text. Multiple libraries are displayed one at a time. From a library's object display, the full or service options show more detailed information about its objects.

Allowed environments: *ALL. Positional parameters: 2.

Restrictions

Parameters

LIB Library

Names one or more libraries to display or print. Libraries for which you lack *READ authority are not displayed. Up to 15 names can be given.

Type
*NAME
Required
No
Default
*LIBL
Length
10
List limit
15
Case
Uppercase

Suggested / special values: *LIBL, *USRLIBL, *CURLIB, *ALLUSR, *ALL

*LIBL
All libraries in the thread's library list are displayed.
*USRLIBL
The current library and the user portion of the library list are displayed; only the user portion if no current library entry exists.
*CURLIB
The thread's current library is displayed; QGPL if none is set.
*ALLUSR
All user libraries, and Q-prefixed libraries that contain user data, in the ASPs defined by ASPDEV are displayed.
*ALL
All libraries in the ASPs defined by ASPDEV are displayed.

ASPDEV ASP device

Specifies the auxiliary storage pool (ASP) device where the library's storage is allocated. Needed if the library is not in the thread's library name space.

Type
*NAME
Required
No
Default
*
Length
10
Case
Uppercase

Suggested / special values: *, *ALLAVL, *CURASPGRP, *SYSBAS

*
Searches the ASPs currently in the thread's library name space.
*ALLAVL
Searches all available ASPs, including ASP groups, the system ASP, and defined basic user ASPs.
*CURASPGRP
Searches the primary and secondary ASPs in the thread's ASP group; an error is issued if the thread has no ASP group.
*SYSBAS
Searches the system ASP and the defined basic user ASPs only.

OUTPUT Output

Says whether the output is displayed at the requesting workstation or printed with the job's spooled output.

Type
*CHAR
Required
No
Default
*
Length
6
Case
Uppercase

Allowed values: *, *PRINT

*
Displayed for interactive jobs, or printed with spooled output for batch jobs.
*PRINT
Printed with the job's spooled output.

Examples

DSPLIB LIB(QGPL)

Shows, or prints on the system printer if run in a batch job, the names, types, and basic descriptions of all objects in QGPL.

DSPLIB LIB(INVENTORY) ASPDEV(SALES)

Displays the names, types, and basic descriptions of all objects in library INVENTORY in the independent ASP named SALES, which must be varied on and have an Available status.

IBM command documentation

Generated from os/cl/catalog/DSPLIB.json and os/cl/help/DSPLIB.json.