How to: |
The REORG subcommand enables you to make a variety of changes to the Master File after data has been entered in the FOCUS data source. REBUILD REORG is a two-step procedure that first dumps the data into a temporary workspace and then reloads it under a new Master File.
You can use REBUILD REORG to:
Note: The fields must be added after the key fields.
REBUILD REORG will not enable you to:
The following steps describe how to use the REORG subcommand:
REBUILD
The following options are available:
1. REBUILD (Optimize the database structure) 2. REORG (Alter the database structure) 3. INDEX (Build/modify the database index) 4. EXTERNAL INDEX (Build/modify an external index database) 5. CHECK (Check the database structure) 6. TIMESTAMP (Change the database timestamp) 7. DATE NEW (Convert old date formats to smartdate formats) 8. MDINDEX (Build/modify a multidimensional index)
REORG or 2
The options are:
1. DUMP (DUMP contents of the database) 2. LOAD (LOAD data into the database)
DUMP or 1
On z/OS, enter the ddname.
On UNIX, Windows, and OpenVMS, enter filename. The data source to be rebuilt will be referenced by a USE command. If no USE command is in effect, the data source will be searched for using the EDAPATH variable.
NO
Statistics appear during the DUMP procedure, including the number of segments dumped and the name and statistics for the temporary file used to hold the data.
REBUILD
REORG or 2
The options are:
1. DUMP (DUMP contents of the database) 2. LOAD (LOAD data into the database)
LOAD or 2
At this stage, you have loaded the specified data from the original Master File into a new data source with the name you specified. It is important to remember that both the Master File and data source for the original Master File remain. You have three choices:
On non-z/OS platforms, if you enter the name of a data source that already exists, (the original Master File) you are prompted that you will be appending data to a preexisting data source and asked if you wish to continue.
In z/OS, you are not asked if you want to append to an existing data source. The data source is created. If you want to append, when you issue the LOAD command, enter LOAD NOCREATE.
Enter N to terminate REBUILD execution. Enter Y to add the records in the temporary REBUILD file to the original FOCUS data source.
If duplicate field names occur in a Master File, REBUILD REORG is not supported.
In z/OS, you must issue either an allocation or a CREATE for a new data source being loaded.
The following procedure:
1. COPY EMPLOYEE.FOC EMPOLD.FOC 2. REBUILD 3. REORG 4. DUMP 5. EMPLOYEE 6. NO 7. ERASE EMPLOYEE.FOC 8. REBUILD 9. REORG 10. LOAD 11. EMPLOYEE
The data source will be dumped and the appropriate statistics will be generated.
The data source will be loaded and the appropriate statistics will be generated.