To display detailed disk capacity information, we can use the Print Disk Information (PRTDSKINF) command. The command is the result of collecting data that has been run using the Retrieve Disk Information (RTVDSKINF) command. For this reason, if you are going to use PRTDSKINF, all you have to do is run RTVDSKINF first.
Retrieve Disk Information (RTVDSKINF)
It is recommended to run this job in a batch way, because for AS400 systems that have many objects it takes a long time in RTVDSKINF.

Print Disk Information (PRTDSKINF)
After RTVDSKINF is finished, we can submit the PRTDSKINF command to QBATCH as follows:
Print size of each library (*LIB) on the system:

The output of PRTDSKINF is spool files. To check the user’s spool files, type WRKSPLF then press Enter.



PRTDSKINF can also display disk information based on Report Type – RPTTYPE:
- *FLR = Retrieved Size Folder.
- *OWN = Total Size Object owned by user on the system.
- *OBJ = Size each object on the system.
- *SYS = Sizeof system’s object.
Please try for other types of reports.
It is recommended to run RTVDSKINF routinely using the scheduler during off-peak hours so that we knows the growth in the size of the system.