Display Binding Directory (DSPBNDDIR)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Display Binding Directory (DSPBNDDIR) command displays the contents of a binding directory.

Restrictions:

Top

Parameters

Keyword Description Choices Notes
BNDDIR Binding directory Qualified object name Required, Positional 1
Qualifier 1: Binding directory Name
Qualifier 2: Library Name, *LIBL, *CURLIB, *USRLIBL
OUTPUT Output *, *PRINT, *OUTFILE Optional, Positional 2
OUTFILE File to receive output Qualified object name Optional, Positional 3
Qualifier 1: File to receive output Name
Qualifier 2: Library Name, *LIBL, *CURLIB, *USRLIBL
OUTMBR Output member options Element list Optional
Element 1: Member to receive output Name, *FIRST
Element 2: Replace or add records *REPLACE, *ADD
Top

Binding directory (BNDDIR)

Specifies the binding directory to be displayed.

This is a required parameter.

Qualifier 1: Binding directory

name
Specify the name of the binding directory to be displayed.

Qualifier 2: Library

*LIBL
All libraries in the library list for the current thread are searched until the first match is found.
*CURLIB
The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
*USRLIBL
Only the libraries in the user portion of the job's library list are searched.
name
Specify the name of the library to be searched.
Top

Output (OUTPUT)

Specifies whether the output from the command is shown at the requesting work station or printed with the job's spooled output.

*
Output requested by an interactive job is shown on the display. Output requested by a batch job is printed with the job's spooled output.
*PRINT
The output is printed with the job's spooled output.
*OUTFILE
The output is directed to the database file specified on the OUTFILE parameter.
Top

File to receive output (OUTFILE)

Specifies the database file to which the output of this command is directed. If the specified file does not exist, this command creates a database file in the specified library. The public authority of the file is the same as the create authority specified for the library in which the file is created. The record format of the output file is the same as that used in the IBM-supplied database file QABNDBND and record format QBNDSPBD.

Qualifier 1: File to receive output

name
Specify the name of the database file that receives the output of the display.

Qualifier 2: Library

*LIBL
All libraries in the library list for the current thread are searched until the first match is found.
*CURLIB
The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
*USRLIBL
Only the libraries in the user portion of the job's library list are searched.
name
Specify the name of the library to be searched.
Top

Output member options (OUTMBR)

Specifies the name of the database file member to which the output of the display is directed. If a member already exists, and *REPLACE is specified, the system clears it and adds the new records. If the member does not exist and a member name is not specified, the system creates a member with the name of the file specified for the File to receive output (OUTFILE) parameter. If a member name is specified, but the member does not exist, the system creates it.

Element 1: Member to receive output

*FIRST
The first member in the file receives the output. If OUTMBR(*FIRST) is specified and a file member does not exist, the system creates a member with the name of the file specified on the OUTFILE parameter.
name
Specify the name of the file member that receives the output. If the member does not exist, the system creates it.

Element 2: Replace or add records

*REPLACE
The system clears the existing member and adds the new records.
*ADD
The system adds the new records to the end of the existing records.
Top

Examples

DSPBNDDIR   BNDDIR(STORE)

This command displays a binding directory named STORE.

Top

Error messages

*ESCAPE Messages

CPF5D01
Binding directory &1 in library &2 is not usable.
CPF980F
Binding directory &1 in library &2 not found.
CPF9801
Object &2 in library &3 not found.
CPF9802
Not authorized to object &2 in &3.
CPF9803
Cannot allocate object &2 in library &3.
CPF9807
One or more libraries in library list deleted.
CPF9808
Cannot allocate one or more libraries on library list.
CPF9810
Library &1 not found.
CPF9820
Not authorized to use library &1.
CPF9830
Cannot assign library &1.
Top