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.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.