COPY object options
The Object Options refer to the section of the COPY statement that defines those options that apply to the specified table spaces or indexes.
COPY object options syntax diagram
COPY object options
- AUX
- BIGDDN
- BIGDSN
- BIGRECDDN
- BIGRECDSN
- CLONE
- COPYDDN
- COPYDSN
- DSNAME dataSetName
- DSNUM
- EXCLUDE
- FULLDDN
- FULLDSN
- FULLRECDDN
- FULLRECDSN
- INDEXES
- RECOVERYDDN
- RECOVERYDSN
- SCOPE
- TASK integer
The Object Options can be specified with different values for each table space and index space in your Object List and apply to the most previous TABLESPACE, INDEXSPACE, INDEX, RMGROUP, RMGROUPIX, OBJECTSET, or APPLICATION specification. The keywords in the Object Options can be used in any order (before you begin Global COPY Options).
You can use a different value for each of these options for each TABLESPACE, INDEXSPACE, RMGROUP, RMGROUPIX, OBJECTSET, or APPLICATION in your COPY statement. Object options apply to the most previous TABLESPACE, INDEXSPACE, RMGROUP, RMGROUPIX, OBJECTSET, or APPLICATION specification and can be specified in any order.
Option | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AUX | The AUX option allows BMC AMI Copy to include auxiliary objects, history objects, and archive tables in the copy without having to explicitly specify these objects. For a description of the AUX option and its parameters, see AUX. | ||||||||||||
BIGDDN | BIGDDN provides an alternative DD or output descriptor name for COPYDDN (COPYDDN) or FULLDDN (FULLDDN) under the following conditions:
OUTSIZE, described on OUTSIZE and OUTSIZE=0, specifies the threshold at which you want the output to go to an alternate DD, such as when you want large copies to go to tape rather than DASD, or to Instant Snapshots rather than standard copies. If the value of OUTSIZE is not met or exceeded, output goes to the DD specified by COPYDDN or FULLDDN, if they are specified. | ||||||||||||
BIGDSN | BIGDSN provides an alternative data set name for COPYDSN (COPYDSN) or FULLDSN (FULLDSN) under the following conditions:
OUTSIZE, described on OUTSIZE and OUTSIZE=0, specifies the threshold at which you want the output to go to an alternate data set, such as when you want large copies to go to tape rather than DASD. If the value of OUTSIZE is not met or exceeded, output goes to the data set specified by COPYDSN or FULLDSN, if they are specified. For Instant Snapshot copies, BIGDSN is the VSAM cluster name. The data component is named by the hardware implementation. The maximum length of BIGDSN for Instant Snapshots is 39 characters. | ||||||||||||
BIGRECDDN | BIGRECDDN provides an alternative DD or OUTPUT descriptor name for RECOVERYDDN (RECOVERYDDN) or FULLRECDDN (FULLRECDDN) under the following conditions:
OUTSIZE, described on OUTSIZE and OUTSIZE=0, specifies the threshold at which you want the output to go to an alternate DD, such as when you want large copies to go to tape rather than DASD. If the value of OUTSIZE is not met or exceeded, output goes to the DD specified by RECOVERYDDN or FULLRECDDN, if they are specified. | ||||||||||||
BIGRECDSN | BIGRECDSN provides an alternative data set name for RECOVERYDSN (RECOVERYDSN) or FULLRECDSN (FULLDSN) under the following conditions:
OUTSIZE, described on OUTSIZE and OUTSIZE=0, specifies the threshold at which you want the output to go to an alternate data set, such as when you want large copies to go to tape rather than DASD. If the value of OUTSIZE is not met or exceeded, output goes to the data set specified by RECOVERYDSN or FULLRECDSN, if they are specified. For Instant Snapshot copies, BIGRECDSN is the VSAM cluster name. The maximum length of BIGRECDSN for Instant Snapshots is 39 characters. | ||||||||||||
CLONE | The CLONE option indicates that COPY is to copy only clone table or index data. If the COPY command is processing a table space and CLONE is specified, BMC AMI Copy will only process clone table data. If the COPY command is processing an index and CLONE is specified, BMC AMI Copy will only process clone table index data. The base table space and its clone can not be processed in the same BMC AMI Copy command. | ||||||||||||
COPYDDN | Use the COPYDDN option to tell BMC AMI Copy the names of the DD statements or the dynamic allocation output descriptors for the local site primary and backup copies of the table space or index space. If you allocate the copy data sets in the JCL, COPYDDN specifies the JCL data set definition names (DDNames). If you dynamically allocate the copy data sets, COPYDDN specifies the appropriate output descriptor names. If you want, you can specify both a DDName and an output descriptor in the same COPYDDN clause. If you allocate the copy data set names in the JCL, you can list up to four copies with the COPYDDN option; however, if you allocate the copy data sets dynamically, you can allocate only two copies. Refer to Allocating-output-copy-data-sets-dynamically and COPY-IMAGECOPY-command for more information about output descriptors. Allocating data sets in the JCL In this case, the COPYDDN option specifies the DDNames to be used in the JCL for the local site copies. The following rules apply:
Refer to Installation-options for more information about the COPYDDNn installation option. Also, see RECOVERYDDN. Allocating data sets dynamically When you dynamically allocate the copy data sets, use COPYDDN to specify the names of the output descriptors to be used to provide the local site copy data sets. The following rules apply:
Refer to Installation-options for more information about the COPYDDN n installation option. Also see RECOVERYDDN. | ||||||||||||
COPYDSN | Use the COPYDSN option when you dynamically allocate the copy data sets and want to override the default names for the local site primary and/or backup copy data sets. COPYDSN is valid only when you have previously specified a copy data set output descriptor with the COPYDDN option. Proceed as follows:
Both dataSetName1 and dataSetName2 are new data set names. You can construct them using the symbolic variables in Using-symbolic-variables. If you prefer, you can use the DSNAME option instead of using COPYDSN to set the values of both of the new data set names. (Refer to DSNAME.) | ||||||||||||
DSNAME dataSetName | Use the DSNAME option when you dynamically allocate the copy data sets and want to override the default names for both the local site and recovery site copy data sets. The value for dataSetName becomes the new default data set name for all output copies. When you use DSNAME, you do not need to specify COPYDSN or RECOVERYDSN. You can construct dataSetName using any of the symbolic variables listed under COPYDSN on COPYDSN. It is suggested that if you create more than one site type copy, you use the variable &TYPE to uniquely identify the data set name. Typically, you use this option with wildcard specification of data sets. Refer to COPY-IMAGECOPY-command, Using-symbolic-variables, and Stacking-copies-on-tape. | ||||||||||||
DSNUM | For table spaces, the DSNUM option identifies either a single partition or data set in the table space named in the TABLESPACE option, or all of the partitions or data sets contained in that table space. The default is all of the partitions or data sets (DSNUM ALL). For indexes, BMC AMI Copy uses the value of DSNUM along with the setting of the IXDSNUM installation option to determine how index copies are handled. See IXDSNUM=ALL for details. You can override the IXDSNUM installation option at runtime by specifying IXDSNUM on the OPTIONS statement (see IXDSNUM). For Instant Snapshot copies, see DSNUM-and-Instant-Snapshots. Values of DSNUM
| ||||||||||||
EXCLUDE | Use the EXCLUDE option after a wildcard space specification to exclude one or more spaces from copying that would otherwise be copied. Thus, EXCLUDE applies only to objects specified in the COPY statement. You can use the wildcards % and * or specific names to specify the exclusions. The excluded spaces must be in the form of a list following the EXCLUDE keyword. Each item in the list must be in the formdatabaseName.spaceName and you must separate the individual items by commas. Optionally, you can enclose the list in parentheses. Excluding-specified-spaces-from-a-wildcard-specification provides more information. | ||||||||||||
FULLDDN | FULLDDN and FULLRECDDN provide an alternative DD or OUTPUT descriptor name for COPYDDN and RECOVERYDDN when FULL AUTO or CHANGELIMIT is used. If a full copy is selected, the FULLDDN and FULLRECDDN options are used to control the output. FULLDDN corresponds to COPYDDN; however, FULLDDN is used only for full copies. (See the COPYDDN description on COPYDDN.) If the copy is a full copy and FULLDDN is specified, FULLDSN is used. If FULLDDN is not specified, COPYDDN is used for the full copy. | ||||||||||||
FULLDSN | You can use FULLDSN and FULLRECDSN without FULLDDN and FULLRECDDN. They are used to name the corresponding full copies. FULLDSN corresponds to COPYDSN; however, FULLDSN is used only for full copies. (See the COPYDSN description on COPYDSN.) If the copy is a full copy and FULLDSN is specified, FULLDSN is used. If FULLDSN is not specified, COPYDSN is used for the full copy. | ||||||||||||
FULLRECDDN | FULLDDN and FULLRECDDN provide an alternative DD or OUTPUT descriptor name for COPYDDN and RECOVERYDDN when FULL AUTO or CHANGELIMIT is used. If a full copy is selected, the FULLDDN and FULLRECDDN options are used to control the output. FULLRECDDN corresponds to RECOVERYDDN; however, FULLRECDDN is used only for full copies. (See RECOVERYDDN.) If the copy is a full copy and FULLRECDDN is specified, FULLRECDSN is used. If FULLRECDDN is not specified, RECOVERYDDN is used for the full copy. | ||||||||||||
FULLRECDSN | You can use FULLDSN and FULLRECDSN without FULLDDN and FULLRECDDN. They are used to name the corresponding full copies. FULLRECDSN corresponds to RECOVERYDSN; however, FULLRECDSN is used only for full copies. (See FULLRECDSN.) If the copy is a full copy and FULLRECDSN is specified, FULLRECDSN is used. If FULLRECDSN is not specified, RECOVERYDSN is used for the full copy. | ||||||||||||
INDEXES | The INDEXES option allows you to specify that you want BMC AMI Copy to make copies of the indexes associated with the table space(s) given by the TABLESPACE option of the COPY command. The default is INDEXES NO indicating that no index copies are to be made. Values of INDEXES
| ||||||||||||
RECOVERYDDN | Use the RECOVERYDDN option to tell BMC AMI Copy the names of the DD statements or the dynamic allocation output descriptors for the recovery site primary and backup copies of the table space or the index space. If you allocate the copy data sets in the JCL, RECOVERYDDN specifies the JCL DDNames. If you dynamically allocate the copy data sets, RECOVERYDDN specifies the appropriate output descriptor names. If you want, you can specify both a DDName and an output descriptor in a single RECOVERYDDN clause. Refer to Allocating-output-copy-data-sets-dynamically and COPY-IMAGECOPY-command for more information about output descriptors. Allocating data sets in the JCL When you allocate copy data sets in the JCL, the RECOVERYDDN option specifies the DDNames to be used for making any required recovery site copies. The following rules apply:
Allocating data sets dynamically When you dynamically allocate the copy data sets, use RECOVERYDDN to specify the names of the output descriptors to be used to provide the remote site copy data sets. The following rules apply:
| ||||||||||||
RECOVERYDSN | Use the RECOVERYDSN option when you dynamically allocate the copy data sets and want to override the default names for the recovery site primary and/or backup copy data sets. RECOVERYDSN is valid only when you have previously specified a copy data set output descriptor with RECOVERYDDN. Proceed as follows:
BothdataSetName3 and dataSetName4 are new data set names. You can construct them using any of the symbolic variables listed under COPYDSN. Refer to COPY-IMAGECOPY-command for more information. If you prefer, you can use the DSNAME option instead of using RECOVERYDSN to set the values of both of the new data set names. (Refer to COPYDSN.) | ||||||||||||
SCOPE | Use the SCOPE option to reduce the object list to only those table spaces and index spaces that meet the specified criteria. SCOPE STATUS (status1,statuss2,...) BMC AMI Copy bypasses spaces that are not in at least one of the specified statuses. SCOPE PENDING SCOPE PENDING achieves the same result as using SCOPE STATUS(COPY,ICOPY). BMC AMI Copy bypasses spaces that are not in COPY or ICOPY status. To process spaces with other statuses, use SCOPE STATUS(...). SCOPE ALL SCOPE ALL is the default. If you specify SCOPE ALL, BMC AMI Copy copies all specified spaces. | ||||||||||||
TASK integer | The TASK option allows you to specify a task number that is associated with a space controlling how the work is divided. If TASK is not specified for a space or space list, BMC AMI Copy starts the copy for a space in the next available task. Spaces within a task are ordered:
Select the value of integer based on this ordering. Parsing and some initialization and termination functions are performed by the main task. Each subtask may perform other initialization and termination functions. The subtask also performs the actual copy of the space. Each subtask creates a thread to Db2. If one task ends abnormally (abends) or ends with a return code greater than 4, no new tasks will be started. BMC AMI Copy will then terminate as soon as any other outstanding subtasks complete. If the main task encounters an error condition, BMC AMI Copy immediately terminates, thus terminating all subtasks. If MAXTASKS is greater than 1, and TASK is not specified, spaces will be copied by the first available subtask. For more information about the interaction between TASK and MAXTASKS, see Using-Multitasking. |