Overview of the Copy function
You can use the Copy function online or offline to heal EPS pointers in a HALDB.
The Copy function reorganizes indexes without reorganizing the primary database. It is useful for removing CI/CA splits. It is similar to a REPRO but uses shadow databases while the database is online for updates. The Copy function takes advantage of the AOI and swapping automation that the Online Reorg function provides. You can also use the Copy function to produce copies of databases for use in other systems by specifying SWAP(N). A no-outage batch image copy is created when keyword ICP(Y) is included when creating copies of databases.
The following features are supported by the COPY command:
The HEAL keyword heals EPS pointers.
- SHARE keyword support was added to support online or offline COPY.
- With CHANGE RECORDING FACILITY, the COPY command uses the CHANGE RECORDING FACILITY log capture facility to allow copying of database data sets while they are online.
- IDCAMS(MODEL) support was added.
- ICP(Y) support was added.
- You can perform the following operations with the COPY command:
- Create a copy of a production database, both full function and HALDB (the whole database or one or more partitions including the ILDS)
- Reorganize indexes and remove CI/CA splits
- Move data sets to new volumes
- Heal HALDB pointers in secondary indexes and logical relationships
- Copy a subset of partitions of HALDB databases and indexes
- Copy HALDB ILDS and/or primary index
- Create a no-outage, batch image copy
The following example shows sample JCL to execute the Copy function.
//* SAMPLE JCL
//***********************************************************
//CPYTSTA EXEC PGM=DLICPYON,REGION=4096K
//STEPLIB DD DISP=SHR,DSN=bmc.xxx.load
//DD DISP=SHR,DSN=IMSVS.Rxx.RESLIB
//DFSRESLB DD DISP=SHR,DSN=IMSVS.Rxx.RESLIB
//IMS DD DISP=SHR,DSN=IMSVS.Rxx.DBDLIB
//PLUSIN DD *
COPY DBD(dbdName) SWAP(N) -
DBRC(Y) IMSID(xxxx) DYNALLOC(Y,Y,Z)
//SYSPRINT DD SYSOUT=*
//BMCPRINT DD SYSOUT=*
//BMCMSG DD SYSOUT=*
//BMCTRACE DD SYSOUT=*
The following JCL statements apply to the Copy function.
EXEC | Required. Specifies PGM=DLICPYON. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
STEPLIB DD | Required. Points to the BMC load library. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IMS DD | Required. Defines the IMSVS.DBDLIB data set that contains the DBD that will be used to sort the unsorted unload file into sequence. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DFSRESLB DD | Required. Defines the library that contains the IMS.RESLIB. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
dbdddnam DD | Required unless DYNALLOC is used. Defines the new copy of the database after it is copied. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
newddnam DD | Required unless DYNALLOC is used. Defines the data set that contains the original database that is being reorganized. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PLUSIN DD | Required. Defines the data set that contains the control statements for the Copy function. The COPY command is required. The following table describes the keywords that you use with PLUSIN DD.
|
Related topic