dbreorg -G GCfile - Garbage Collection

dbreorg [-G [GCFile]] [-W WFFile] {{-p dataarea} | Productline}

Removes deleted records from the database and compacts the files.

GCfile is the file that contains the names of other files that should have garbage collection performed. If you do not specify GCfile, dbreorg performs garbage collection on all files in the product line.

Caution: 
Performing dbreorg -G on a full application line may be very time consuming.
Program Option Description
G GCFile

Garbage collection; reorganize files specified in the garbage collection file. The garbage collection file is a list of files to be reorganized. File names specified in the garbage collection file are separated by any of the following: <cr> (carriage return character), spaces, tabs, or commas.

When -G is specified without a garbage collection file, all files are marked for garbage collection.

W WFFile

Could specify a number of work files. You must have a file to specify the work file names.

Optional. Work file to hold the database file. A work file can be a tape device. If you do not supply a name, the default is %LAWDIR%\productline\reorg.rwrk.

- or -

%LAWDIR%\reorg.rwrk

The reorganization process dumps the database file to a work file. It splits a single database file among multiple work files if a work file grows too large for the partition it is in. If the file gets full, the system prompts you for the next work file.

p dataarea Reorganize the specified data area. If you do not use the -p option, specify a product line to run the reorg for.