Previous Topic: RESTRUCTURE Utility StatementNext Topic: MAINTAIN INDEX Utility Statement


REORG and UNLOAD/RELOAD Utility Statements

What REORG and UNLOAD/RELOAD Do

The REORG and UNLOAD/RELOAD utility statements reorganize databases by unloading existing records and reloading them into another database. To reorganize a database, you follow one of two approaches:

The choice of which approach to use depends on a number of factors:

Steps for unloading and reloading a database

To make changes using REORG or UNLOAD/RELOAD, follow the procedure described in 32.2.2, "Procedure for Modifying the Non-SQL Definitions", adding the steps listed in the following table.

After ...

Do this

Modifying the schema and subschemas

Use the REORG or UNLOAD/RELOAD statements to reorganize the data using subschemas that reflect both the old and new schema definitions.

Unloading the data

Use the FORMAT utility statement to initialize the files into which the data will be reloaded.

Note: For more information about REORG, UNLOAD and RELOAD, see the CA IDMS Utilities Guide.