Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Display Folder (DSPFLR) command allows you to display or print a list of folders and documents, or to create an output file that contains the list of folders or documents.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FLR | Folder | Character value, *ALL | Optional, Positional 1 |
TYPE | Type of object | *FLR, *DOC | Optional, Positional 2 |
OUTPUT | Output | *, *PRINT, *OUTFILE | Optional, Positional 3 |
LEVEL | Level of list | *ALL, *CURRENT | Optional |
OUTFILE | File to receive output | Qualified object name | Optional |
Qualifier 1: File to receive output | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
OUTMBR | Output member options | Element list | Optional |
Element 1: Member to receive output | Name, *FIRST | ||
Element 2: Replace or add records | *REPLACE, *ADD | ||
OUTFILFMT | Outfile format | *TYPE1, *TYPE2 | Optional |
Top |
Specifies the names of folders or members on the list.
Top |
Specifies whether folders or documents are listed.
Top |
Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.
Top |
Specifies whether the list includes folders nested within the folders listed or only the folders at the current level. This parameter is not allowed when (*) is specified on the Output prompt (OUTPUT parameter).
Top |
Specifies the name and library of the database file that receives the output of the command. If the file does not exist, this command creates a database file in the specified library.
The possible library values are:
Note: If you specify *FLR on the Type of object prompt (TYPE parameter) and a new file is created, system file QADSPFLR in system library QSYS with a format name of FLRDTL is used as a model.
If you specify *DOC on the Type of object prompt (TYPE parameter) and a new file is created, system file QADSPDOC in system library QSYS with a format name of DOCDTL is used as a model.
Top |
Specifies the name of the database file member that receives the output of the command.
The possible member to receive output values are:
The possible replace or add records values are:
Top |
Specifies the format of the database file to which the output of the display is directed.
Top |
Example 1: Displaying or Printing Output
DSPFLR FLR(GENERAL) TYPE(*FLR) OUTPUT(*)
This command shows a list of folders for the folder, GENERAL, at the requesting work station (if requested by an interactive job) or the output is printed with the job's spooled output (if requested by a batch job).
Example 2: Directing Output to a Database File
DSPFLR FLR(*ALL) TYPE(*FLR) OUTPUT(*OUTFILE) LEVEL(*ALL) OUTFILE(MYLIB/MYFILE) OUTMBR(MYMBR *REPLACE)
This command shows all the folders that the user has authority to view. The output is directed to MYMBR, in MYFILE located in MYLIB. If member MYMBR already exists, MYMBR is cleared and then the new records are added.
Top |
None
Top |