Disk Tip: This will enable you to create disk reports on the fly.

1735 pts.
AS/400 Reports
Setup the Weekly Collection of Disk Space Information

Software/Hardware used:
V5R2 V5R3 V5R4 V6R1

Answer Wiki

Thanks. We'll let you know when a new response is added.

Setup the Weekly Collection of Disk Space Information

When I need to clean up a system I like to use Disk Space Tasks reports to determine where to start. You might as well start with the libraries, files, etc. that take up the most space. This will give you the most bang for your cleanup efforts. (Note: You’ll need certain authorities to access all of the options in this menu)

The Disk Space Tasks menu provides the option for collecting disk space information to help show how storage is being used on your system. After collecting the information, you can specify what information to include in a report and then print the report.


1. Collect disk space information:
Set up for weekly collection. Allows for On-The-Fly reports.
I Usually set this up to run Saturday evening at about 19:00.

You can also start this immediately by selecting 1=Date/time then entering *CURRENT for the date and time. This will take some time (Maybe hours) and will take up some additional space to collect the data so don’t do this if you are already over say 95 to 98%.

Once the data has been collected you can print the library report.
It generally has enough information to get you started.

2. Print disk space information:
Type of Report: Library
Include information about objects in libraries: “Y”
Size of smallest library: 99,000

The report will start with a summary then show the library details further down.
I make note in the summary of the % taken up by the libraries, directories, folders, temporary space or anything thats not normal. Then I’ll go down to the list of libraries and their files to decide what action to take. Sometimes this will be reorganizing files in the databases, deleting test databases, image catalogs, spool files, etc.


Discuss This Question: 2  Replies

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Whatis23
    You can also use the RTVDSKINF to collect the Disk Space Information. The command does not include the date to run as it submits it immediately. Use the job scheduler instead where you can also select multiple days of the week if desired. Or just schedule date/time in the SBMJOB parm. The info is stored in QUSRSYS/QAEZDISK PRTDSKINF will give the same options as noted by Voodoo
    5,665 pointsBadges:
  • pdraebel
    The job for filling the Disk Space files is QEZDKWKMTH. I schedule this every week on time when the system is not busy (Sunday evening). To automatically generate reports I scheduled two jobs that run the PRTDSKINF command. Once PRTDSKINF RPTTYPE(*LIB) and once PRTDSKINF RPTTYPE(*OBJ) OBJ(*ALL) MINSIZE(99999). This prints reports with libraries listed by size and one report with the very large objects on the system.
    7,545 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.


Share this item with your network: