Staging data sets and the data set rename process


LOADPLUS uses the rename process when FASTSWITCH NO is in effect. During this process, LOADPLUS replaces the original data sets with the staging data sets by renaming the VSAM data sets.

Related topic

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.

Warning

Important

You can control when this process occurs by using the SWITCHTIME option. For more information, see SWITCHTIME.

  1. 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.

    Warning

    Important

    LOADPLUS terminates if the following data sets already exist:

    VCAT.OLDDBC.database.tableSpace

    VCAT.OLDDBD.database.tableSpace

    This part of the process makes the original data sets obsolete.

  2. 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.

  3. After successfully renaming the data sets, LOADPLUS starts the objects with their original statuses.
  4. 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:

data_set_rename_process.png

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

LOADPLUS for DB2 13.1