Staging data sets and the data set rename process
Naming conventions for the rename process
If you need to preallocate or define the staging data sets, use the original Db2 data set names as a starting point, but replace the DSNDBC and DSNDBD nodes with BMCDBC and BMCDBD.
The following table displays this naming convention for staging data sets for the rename process:
Existing data set name | Staging data set name |
|---|---|
VCAT.DSNDBC.database.tableSpace.I0001.Annn | VCAT.BMCDBC.database.tableSpace.I0001.Annn |
VCAT.DSNDBD.database.tableSpace.I0001.Annn | VCAT.BMCDBD.database.tableSpace.I0001.Annn |
VCAT.DSNDBC.database.tableSpace.J0001.Annn | VCAT.BMCDBC.database.tableSpace.J0001.Annn |
VCAT.DSNDBD.database.tableSpace.J0001.Annn | VCAT.BMCDBD.database.tableSpace.J0001.Annn |
Data set rename process
After writing the loaded objects to the staging data sets (named as shown in the Naming conventions for staging data sets for the rename process table), LOADPLUS renames the data sets by using the following process. The Data set rename process figure illustrates this process.
LOADPLUS prevents all access to the objects and renames the original Db2 VSAM data sets by replacing DSN in the DSNDBC node of the cluster and in the DSNDBD node of the data component with OLD.
This part of the process makes the original data sets obsolete.
LOADPLUS renames the staging data sets by replacing BMC in the BMCDBC node of the cluster and in the BMCDBD node of the data component with DSN.
This step gives the staging data sets the same name as the original data sets, even though they are in a new location.
- After successfully renaming the data sets, LOADPLUS starts the objects with their original statuses.
- The next step depends on the value for the ORIGDISP or ORIGINALDISP option:
- If the value for the ORIGDISP or ORIGINALDISP option is DELETE, LOADPLUS deletes the now-obsolete original data sets.
If the value for this option is RENAME, LOADPLUS renames the original data sets to the staging data set names by replacing OLD with BMC.
RENAME preserves the space that was initially allocated for the original data sets. As a result, the staging data sets are ready to be used with the next load job that uses staging data sets.
The following figure illustrates the data set rename process:
