Output files for the Display File Description (DSPFD) command

 

The Display File Description (DSPFD) command provides unique output files, depending on the parameters specified. To collect access path information about all files in the LIBA library, you can specify:

DSPFD   FILE(LIBA/*ALL)  TYPE(*ACCPTH)  OUTPUT(*OUTFILE) +
        OUTFILE(LIBB/ABC)

The file ABC is created in library LIBB and is externally described with the same field descriptions as in the system-supplied file QSYS/QAFDACCP. The ABC file then contains a record for each key field in each file found in library LIBA that has an access path. If the DSPFD command is coded as:

DSPFD   FILE(LIBX/*ALL)  TYPE(*ATR)  OUTPUT(*OUTFILE) +
        FILEATR(*PF)  OUTFILE(LIBB/DEF)

the file DEF is created in library LIBB and is externally described with the same field descriptions as exist in QSYS/QAFDPHY. The DEF file then contains a record for each physical file found in library LIBX. You can display the field names of each model file supplied by IBM using the DSPFFD command. For example, to display the field description for the access path model file (*ACCPTH specified on the TYPE parameter), specify as follows:

DSPFFD   QSYS/QAFDACCP

 

Parent topic:

Writing the output from a command directly to a database file

 

Related concepts


Control language

 

Related reference


Display File Description (DSPFD) command