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

GUID-DC1EEDB3-912F-4F0E-B490-2E1912332595-low.png

GUID-70FAB8EE-9619-489D-BEBE-4EFF27103E22-low.png

COPY_object_option_3 edited.png

GUID-84CAF68B-8DAC-4DEE-9819-1C38BF9AF785-low.png

GUID-512C7E17-8353-44BC-AF36-22580DCE35C2-low.png

GUID-17BA4DFE-9B1C-4F55-ACEC-037E12DF05C2-low.png

GUID-447C9ADB-6228-4D2E-B7A4-E615BB1FCE05-low.png

GUID-7D26CC62-4329-4496-AE4C-7C2C63CB3D61-low.png

GUID-0329B44D-C187-44DC-A17E-4711A0FB9EB4-low.png

GUID-E0EDF3A7-BE43-4D33-92DB-366731D0870C-low.png

 COPY object options

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:

  • Dynamic allocation is used
  • Any FULL option is specified
  • The threshold specified by the OUTSIZE option has been met or exceeded

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:

  • Dynamic allocation is used
  • Any FULL option is specified
  • The threshold specified by the OUTSIZE option has been met or exceeded

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:

  • Dynamic allocation is used
  • Any FULL option is specified
  • The threshold specified by the OUTSIZE option has been met or exceeded

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:

  • Dynamic allocation is used
  • Any FULL option is specified
  • The threshold specified by the OUTSIZE option has been met or exceeded

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.

Important

You cannot specify the CLONE option and the RUNSTATS option in the same job.

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.


For more information about output descriptors, see Allocating-output-copy-data-sets-dynamically and COPY-IMAGECOPY-command.

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:

  • Each DDName that you specify with COPYDDN must be unique within the job step. You can optionally enclose the list of DDNames in parentheses in the COPY statement and you must separate the DDNames by commas. Spaces between DDNames are optional.
  • If you do not specify COPYDDN or RECOVERYDDN, BMC AMI Copy assumes that only one copy is required and uses SYSCOPY as the DDName if it exists in the JCL.

    If you specify RECOVERYDDN without specifying COPYDDN, BMC AMI Copy uses SYSCOPY as a local primary copy if a DD statement for it exists in the JCL. If no DD statement exists, BMC AMI Copy makes only recovery site copies.

  • When you do not specify the RECOVERYDDN option, you can list up to four DDNames (DDName1 through DDName4) with the COPYDDN option (one DDName per copy). When you list only one DDName, the copy is registered as a local primary copy. If you list more than one DDName, the copies are registered according to the setting of the corresponding COPYDDN n installation option. For example, if COPYDDN2=RB, the copy specified by DDName2 (the second copy) is registered as the recovery backup copy.
  • When you do specify the RECOVERYDDN option, you can list up to two DDNames ( DDName1 and DDName2) with the COPYDDN option thus allowing DDName3 and DDName4 to be specified with the RECOVERYDDN option. In this case, the copy specified by DDName1 (or by the default SYSCOPY) is registered as a local primary copy. When two copies are required, the copy specified by DDName2 is registered as a local backup copy.

    If RECOVERYDDN is specified, any third and fourth data sets specified by COPYDDN are invalid.

For more information about the COPYDDNn installation option, see Installation-options and 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:

  • Specify DEFAULT to use the default installation options or specify an appropriate descriptor name to refer back to an OUTPUT statement. (For more information, see COPY-IMAGECOPY-command.)
  • You can use the same output descriptor for both copies if you are not stacking copies to tape. When you stack both copies to tape, you must use a different output descriptor for each type of copy. (For more information, see Stacking-copies-on-tape and Using-multitasking-with-tape-stacking-or-cabinet-copies.)
  • You can override the default data sets named in the descriptor by using the COPYDSN option. You can optionally enclose the output descriptor list in parentheses in the COPY statement. The descriptor names in the list must be separated by commas. Spaces between names are optional. (For more information, see COPYDSN.)
  • You can list up to two output descriptor names with COPYDDN to make two copies. When you list only one output descriptor name, the copy is registered as a local primary copy. If you list more than one output descriptor name, the copies are registered according to the setting of the corresponding COPYDDNn installation option. For example, if COPYDDN2=RB, the copy specified by the second descriptor name is registered as the recovery backup copy.
  • When you specify both COPYDDN and RECOVERYDDN, you can list up to two output descriptor names with COPYDDN so allowing two more to be specified with RECOVERYDDN. In this case, the copy specified by the first output descriptor is registered as a local primary copy. When two copies are required, the copy specified by the second descriptor name is registered as a local backup copy.

    If RECOVERYDDN is specified, any third and fourth data sets specified by COPYDDN are not valid.

For more information about the COPYDDN n installation option, see Installation-options and 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:

  • To override only the local primary name, specify COPYDSN(dataSetName1).
  • To override only the local backup name, specify COPYDSN(,dataSetName2).
  • To override both, specify COPYDSN(dataSetName1,dataSetName2).

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. (See DSNAME.)

Important

For Instant Snapshot copies, COPYDSN is the VSAM cluster name. The data component is named by the hardware implementation. The maximum length of COPYDSN for Instant Snapshots is 39 characters.

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.

See COPY-IMAGECOPY-command, Using-symbolic-variables, and Stacking-copies-on-tape.

Important

For Instant Snapshot copies, DSNAME is the VSAM cluster name. The data component is named by the hardware implementation. The maximum length of DSNAME for Instant Snapshots is 39 characters.

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.

Important

You cannot run multiple copies against the same partition (for DSNUM integer) or the same table space (for DSNUM ALL) or the same index space (for DSNUM DATASET). Also, note that the IXDSNUM installation option influences how BMC AMI Copy makes index copies and works in conjunction with the value of DSNUM. For the effect of DSNUM integer on index copies using either COPY TABLESPACE ... INDEXES YES or COPY INDEXSPACE, see IXDSNUM or IXDSNUM=ALL.

Values of DSNUM

Value

Description

DSNUM integer

For a table space, DSNUM integer is the number of a single partition or data set in the target table space that you want to process. For a partitioned table space, an integer is the partition number. For a nonpartitioned table space, an integer is the ordinal number of the data set for the table space. Specify this option when you want to make an image copy of only one partition or data set in that table space. The value of the integer must be in the range 1 through 4096.

Important

When you run copies concurrently against different partitions of the same space, all copies must have the same SHRLEVEL value.

For an index space, the value of the integer must be in the range 1 through 4096. An integer is the ordinal number of the data set.

DSNUM begin:end

DSNUM begin:end specifies a range of partitions to process. You specify the range of partitions with two numbers separated by a colon (:) with or without spaces. The following example gives a specification that copies physical partitions 10 through 20:

COPY TABLESPACE ACCOUNTS.*
     DSNUM 10:20

During the table space selection process, only partitioned table spaces that overlap the partition range qualify for selection. Nonpartitioned and partitioned table spaces that do not have as many partitions as the low value of the range do not qualify for selection, and BMC AMI Copy issues the following message:

 BMC47431IdatabaseName.tableSpaceName DID NOT QUALIFY FOR RANGE SELECTION

When you use the INDEXES YES option on the COPY command, the index space that is associated with the table space is also selected.

  • LOGICAL

    Adding the LOGICAL option after a DSNUM begin: end specification allows you to indicate logical partitions rather than physical partitions and have the logical partitions mapped to their respective physical data set numbers. BMC AMI Copy then continues as if you specified a physical range of partitions. You might use the LOGICAL option if you have rotated your partitioned table spaces to create a logical view of the physical data sets.

    In the following specification, the logical partition numbers 10 through 20 are mapped to their respective physical data set numbers:

    COPY TABLESPACE ACCOUNT.*
         DSNUM 10:20 LOGICAL

    For INDEXES YES, COPY INDEXSPACE, and COPY INDEX, the conversion of the logical partition to the physical partitions is based on the parent table space.

DSNUM ALL

DSNUM ALL is the default for a TABLESPACE specification and specifies that you want to copy all partitions or data sets in the target table space to one physical output copy when you specify FULL YES or FULL NO.

Important

DSNUM ALL is not allowed with DSSNAP YES or DSSNAP AUTO. For more information, see DSSNAP and Making-Instant-Snapshot-copies.

DSNUM PART

Specify DSNUM PART when you copy a partitioned table space and you want copies to be made and registered by partition instead of by table space. By contrast, DSNUM ALL copies and registers a partitioned table space as one space.

When you use wildcard selection of table spaces with some partitioned and others nonpartitioned, specifying DSNUM PART provides copies by partition or by table space, as appropriate.

DSNUM DATASET

DSNUM DATASET specifies that you want to copy all physical data sets of the target index space as separate output data sets. DSNUM DATASET can also be used with TABLESPACE specifications. DSNUM DATASET differs from DSNUM PART in that nonpartitioned spaces are copied by the data set.

A DSNUM DATASET copy or copy image copy of a multi-data-set, nonpartitioned index is nonstandard. The copy is registered in BMCXCOPY, and you can use it only with the BMC AMI Recover product to recover the index. BMC AMI Copy does not attempt to create these copies in a standard Db2 format or record the oldest version in BMCXCOPY.

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. For more information, see Excluding-specified-spaces-from-a-wildcard-specification.

Important

EXCLUDE processing is done in two passes for TABLESPACE specifications. The first pass excludes table spaces from the space list so that indexes for the excluded table spaces are not copied if INDEXES YES (see INDEXES) is specified. A second EXCLUDE pass is done after INDEXES YES is expanded so that indexes can be excluded by name.

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.

Important

If you are using dynamic allocation and the value of the OUTSIZE option (OUTSIZE and OUTSIZE=0) is met or exceeded for any FULL option, BIGDDN (BIGDDN) and (BIGRECDDN) will be used, if they are specified. Otherwise, FULLDDN and FULLRECDDN are used if they are specified. If neither BIGDDN or BIGRECDDN nor FULLDDN or FULLRECDDN are specified, COPYDDN and RECOVERYDDN are used.

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.

Important

If you are using dynamic allocation and the value of the OUTSIZE option (OUTSIZE and OUTSIZE=0) is met or exceeded for any FULL option, BIGDSN (BIGDSN) and BIGRECDSN (FULLRECDSN) will be used, if they are specified. Otherwise, FULLDSN and FULLRECDSN are used if they are specified. If neither BIGDSN or BIGRECDSN nor FULLDSN or FULLRECDSN are specified, COPYDSN and RECOVERYDSN are used.

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.

Important

If you are using dynamic allocation and the value of the OUTSIZE option (OUTSIZE and OUTSIZE=0) is met or exceeded for any FULL option, BIGDDN (BIGDDN) and BIGRECDDN (BIGRECDDN) will be used, if they are specified. Otherwise, FULLDDN and FULLRECDDN are used if they are specified. If neither BIGDDN or BIGRECDDN nor FULLDDN or FULLRECDDN are specified, COPYDDN and RECOVERYDDN are used.

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.

Important

If you are using dynamic allocation and the value of the OUTSIZE option (OUTSIZE and OUTSIZE=0) is met or exceeded for any FULL option, BIGDSN (BIGDSN) and BIGRECDSN (*BIGRECDSN) will be used, if they are specified. Otherwise, FULLDSN and FULLRECDSN are used if they are specified. If neither BIGDSN or BIGRECDSN nor FULLDSN or FULLRECDSN are specified, COPYDSN and RECOVERYDSN are used.

INDEXES

The INDEXES option allows you to specify that you want BMC AMI Copy to make copies of the indexes associated with the table spaces given by the TABLESPACE option of the COPY command. The default is INDEXES NO indicating that no index copies are to be made.

Important

The use of INDEX is synonymous to INDEXES for this option.

The INDEXES option is not applicable to INDEXSPACE or INDEX specifications. See COPY-syntax-rules for more information.

Values of INDEXES

Value

Description

INDEXES NO

Specifying INDEXES NO tells BMC AMI Copy that no backup of the indexes for the specified table space or table spaces is to be performed.

INDEXES YES

Specifying INDEXES YES tells BMC AMI Copy to make copies of all indexes for the table spaces specified by the TABLESPACE, APPLICATION, RMGROUP, RMGROUPTS, or OBJECTSET option. Dynamic allocation is required because only one COPYDDN, RECOVERYDDN, COPYDSN, and RECOVERYDSN can be specified.

Important

INDEXES YES is invalid with an unqualified OBJECTSET specification (OBJECTSET without TABLESPACE).

If INDEXES YES is specified with a TABLESPACE option that has DSNUM specified, the value of the IXDSNUM installation option works with the value of DSNUM to determine how BMC AMI Copy makes the index copies. See the IXDSNUM description on IXDSNUM=ALL for details. The IXDSNUM installation option can be overridden at runtime by specifying IXDSNUM on the OPTIONS command (see IXDSNUM).

INDEXES YES implies grouping with the TABLESPACE. Indexes for a table space are copied immediately after the table space. The indexes are copied in alphanumeric order and data set order.

Important

When INDEXES YES is used with TABLESPACE, an index will be included only once within the same SYSIN. If you need to copy it more than once, you must use an INDEXSPACE keyword and the index name or create the copy in a separate step.

INDEXES COPYYES

Specifying INDEXES COPYYES tells BMC AMI Copy to copy only those indexes in the table space for which the COPY YES attribute is selected.

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.

For more information about output descriptors, see Allocating-output-copy-data-sets-dynamically and COPY-IMAGECOPY-command.

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:

  • Each DDName you use with RECOVERYDDN must be unique within the job step. You can optionally enclose the DDName list in parentheses in the COPY statement. You must separate the DDNames in the list by commas. Spaces between DDNames are optional.
  • The copy specified by DDName3 is registered as a recovery site primary copy. When two copies are required, the copy specified by DDName4 is registered as a recovery site backup copy.

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:

  • Specify DEFAULT to use the default installation options, or specify an appropriate descriptor name to refer back to an OUTPUT statement. (For more information, see COPY-IMAGECOPY-command.)
  • You can use the same output descriptor for both copies if you are not stacking copies to tape. When you stack both copies to tape you must use a different output descriptor for each type of copy. (For more information, see Stacking-copies-on-tape and Using-multitasking-with-tape-stacking-or-cabinet-copies.)
  • You can override the default data set names named in the descriptor by using the RECOVERYDSN option. You can optionally enclose the output descriptor list in parentheses in the COPY statement. You must separate the descriptor names in the list by commas. Spaces between names are optional. (For more information, see RECOVERYDSN.)
  • The copy specified by outputDescriptor3 is registered as a recovery site primary copy. When two copies are required, the copy specified by outputDescriptor4 is registered as a recovery site backup copy.

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:

  • Specify RECOVERYDSN( dataSetName3) to override only the recovery primary name.
  • Specify RECOVERYDSN(,dataSetName4) to override only the recovery backup name.
  • Specify RECOVERYDSN(dataSetName3,dataSetName4) to override both.

BothdataSetName3 and dataSetName4 are new data set names. You can construct them using any of the symbolic variables listed under COPYDSN.

For more information, see COPY-IMAGECOPY-command.

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. (See COPYDSN.)

Important

For Instant Snapshot copies, RECOVERYDSN is the VSAM cluster name. The data component is named by the hardware implementation. The maximum length of RECOVERYDSN for Instant Snapshots is 39 characters.

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,status2,...)

BMC AMI Copy bypasses spaces that are not in at least one of the specified statuses.

Example
COPY TABLESPACE OBJECTSET  <oscreator.osname>
      COPYDDN(TAPE)
      SCOPE STATUS (AREO*,AREOR)
    SHRLEVEL CHANGE

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(...).

Example
COPY TABLESPACE OBJECTSET  <oscreator.osname>
      INDEXES YES
      COPYDDN(TAPE)
      SCOPE PENDING
    SHRLEVEL CHANGE

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:

  • By appearance in the space list in the COPY command
  • In alphanumeric order within wildcard expansions.

Select the value of the integer based on this ordering.

Parsing and some initialization and termination functions are performed by the main task. Each subtask might 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 are 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.

Important

Also, multitasking might require changes to the following DB2 DSNZPARMS:

  • CTHREAD (maximum users)
  • IDFORE (maximum users from TSO)
  • IDBACK (maximum number of concurrent attachments from batch)

 

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