CL Command Reference - DSPFD
CL Command List > DSPFD Reference
Description:
The Display File Description (DSPFD) command shows one or more types of information retrieved from the file descriptions of one or more database and/or device files. The information is provided for each file that has the specified name and that is found in the libraries named in the specified library qualifier to which the user has access. The information can be shown, printed, or directed to a database output file (OUTFILE).
Restrictions:
1. Before the specified files can be shown, the user must have object operational authority to those files.
2. Of the libraries identified by the library qualifier, only libraries to which the user has read authority are searched for the specified files.
3. If TYPE(*ALL), TYPE(*MBR), or TYPE(*MBRLIST) is specified and if the file is a physical file, the user needs at least one data authority (read, write, update, or delete) to the file to receive information about the members.
Examples:
Example 1: Displaying Definition of a File
DSPFD FILE(*ALL/FILE1)
This command shows the definition of FILE1 as defined in all libraries authorized for the user on the local system. The information is displayed at the work station running the command.
Example 2: Displaying Attributes of Local DDM File
DSPFD FILE(LIBRARY1/FILE1)
This command shows the definition of FILE1 as defined in LIBRARY1. If FILE1 is a Distributed Data Management (DDM) file, only the attributes of the local DDM file are shown at the work station running the command.
Example 3: Displaying Definition of All Files
DSPFD FILE(*ALL/*ALL) TYPE(*ALL) SYSTEM(*ALL)
This command shows the definition of all the files in all libraries authorized for the user on both the local and on all remote systems. For DDM files, the displays first show information about the local DDM file and then, if available, information about the remote file that is named on the RMTFILE parameter of that CRTDDMF command. The information is shown at the work station running the command.