CL Command Reference - DSPFLR

CL Command List > DSPFLR Reference

Description:

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.


Examples:

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.