We wrote a program that is part of our backup process that looks at the 
number of deleted records in each file and if that exceeds 20%, reorgs the 
file.
There are some files you cannot reorg using the RGZPFM command as there 
are MAPICS programs that need to do this.
Look in table MBRLST and the column "File reorganization procedure", if 
it's a physical file (PTYPE) and RPROC is blank, you can use RGZPFM.
We only do the files with a blank RPROC.

I don't think it would be to difficult to use the procedures though:

STRMAPICS xx
Populate the LDA
Call the procedure in RPROC
ENDMAPICS

Test thoroughly!

It's hard to tell how long it will take but if you're system is pretty 
much in dedicated mode, measure it once and it really shouldn't change 
significantly unless the number of rows starts growing or you start adding 
indexes. 

Ron Hankey - CPIM


Peter wrote:
<SNIP>
Is there a way that I can easily submit the reorganization from within my 
system start up CL?  Anybody that may want to share how you do it in your 
shop?
<SNIP>

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.