Reduce Disk Space On IBM iSeries Using RGZPFM
This isn’t news to many iSeries Admins or CNC Admins but it really hit home for me a couple weeks ago. We had a file that was really increasing to an unmanageable size (500+GB) and didn’t know why. It was the F00165 (Media Objects). There were only 500,000+ records and only a few thousand deleted records. We really couldn’t understand the massive amount of growth. Well, it turns out that one of our developers has a job running on the scheduler every 3 minutes which rights text log entries to the F00165. It doesn’t create a bunch of new records, it just appends entries to existing records. Not knowing if Reorganizing the file would help, we waited until after hours and ran the following:
RGZPFM FILE(PRODDTA/F00165)
The results were amazing! It dropped the file size to 770+MB! Yeah, that’s right MB!!!
That’s nuts, I agree. However, it made our infrastructure manager very happy and now we run that job nightly just to make sure we don’t need to deal with it again.
IBM iSeries RGZPFM Command: FAQs
IBM iSeries RGZPFM Command: Ending a RGZPFM
Author
Stewart Schatz
More Stories
How to Print a Directory Structure Using PowerShell: Step-by-Step Guide
If you need to print out the directory structure and list the files within, this PowerShell script will help you...
Quick Tip: IBM Navigator for i Default URL
This is a really quick one but I keep forgetting it: http://<SERVERNAME>:2004/ibm/console
Windows God Mode… What!?!
Windows God Mode is a hidden feature in the Windows operating system that allows users to access all of the system’s control panel options and settings in a single place.
How To Test A SQL Server Connection
There is an easy way to test your SQL Server connection when running Windows without any special software. I found...
4 Lines To Export Outlook Rules To Excel/CSV Using PowerShell
I used to use a ton of Outlook Rules to organize the thousands of emails that I receive each day....
Get The Size & Record Count Of All Tables In A SQL Server Database
Use the SQL query below to display the size and record count of all tables in an SQL Server database....
Average Rating