IBM Support

Getting Started with RTVDIRINF / PRTDIRINF Commands

Troubleshooting


Problem

Retrieve Directory Information is used to collect attributes for directories and files in the Integrated File System.

Resolving The Problem

Retrieve Directory Information is used to collect attributes for directories and files in the Integrated File System.

o

The collected information is stored in database files that are named using the information file prefix specified by the INFFILEPFX parameter in the library specified by the INFLIB parameter.

Note: QTEMP cannot be used in the INFLIB parameter. This is not a limitation of the RTVDIRINF command; it is a limitation of SQL which the command uses to build and populate the database files produced by the command.
oTo obtain the most accurate results, this command should be run at a time when there is very little activity for files in the specified directory.
oThree tables are created as a result of the RTVDIRINF command:

Table 1: Stores object attributes
Table 2: Stores directories
Table 3: Used to determine which files were used to store object attributes
oThe file names and library can be found in the joblog of RTVDIRINF in message ID CPI1E30:

o Default library is QUSRSYS
o Default file name starts with QAEZ*

PRTDIRINF
oThe Print Directory Information command is used to print directory information for objects in the Integrated File System that was collected by the RTVDIRINF command.
oA spooled file with file name QPEZDIR is created in the spooled queue associated with the job using this command.

Note: InfoCenter is the best source for documentation on the RTVDIRINF and PRTDIRINF commands: http://publib.boulder.ibm.com/iseries/


Examples
1.RTVDIRINF DIR('/fixes')

Table QAEZD0013D in QUSRSYS created but could not be journaled.
Table QAEZD0013O in QUSRSYS created but could not be journaled.
    Database files QAEZD0013O and QAEZD0013D created in library QUSRSYS.
    Directory information was successfully retrieved.
2.RTVDIRINF DIR('/fixes') INFFILEPFX(TST) INFLIB(Mylib)

Table TSTD in Mylib created but could not be journaled.
Table TSTO in Mylib created but could not be journaled.
    Database files TSTO and TSTD created in library Mylib
    Directory information was successfully retrieved.

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"6.1.0"}]

Historical Number

659856512

Document Information

Modified date:
18 December 2019

UID

nas8N1010533