Image copy options


image-2024-6-4_11-42-49.png

COPY

The COPY option tells BMC AMI Load whether to produce a copy of the table space or selected partitions during the load. The use of the FLASHCOPY YES|NO option can affect the COPY option.

Your COPY specification does not apply to the DSNUTILB process.

Operands

NO

(Default) Tells BMC AMI Load not to make a copy of the table space. The use of COPY NO does not create a copy file. The COPY NO processing disregards the ZPARM FLASHCOPY_LOAD value specification.

Important

BMC AMI Load ignores the COPYPEND option.

If you specify COPY NO, you can specify COPYPEND. For more information, see COPYPEND .

YES

BMC AMI Load creates a copy of the table space or partitions, depending on the type of object that you are loading and the value of your other options. BMC AMI Load creates a standard Db2 image copy. The use of COPY YES in conjunction with FLASHCOPY YES will result in the creation of a FlashCopy file.

The unit name and options for the copy destinations are defined by the one of the following methods. The value of the OVERRIDEOUTPUT parameter determines the method that BMC AMI Load uses.

The following considerations apply to the COPY option:

  • You cannot specify COPY if you specify RESUME YES SHRLEVEL CHANGE.
  • You must specify the OUTPUT command, or the XCPYDYNM automation control point must be available to provide the image copy data set name for each image copy.
  • BMC AMI Load registers all copies with Db2 in the SYSIBM.SYSCOPY table. 
  • BMC AMI Load ignores any INLINE specification.

COPYPEND

This option is available only if you specify COPY NO.

The COPYPEND option specifies whether BMC AMI Load should set the table space to COPY pending status if a copy was not made as part of the load job.

When COPYPEND is not specified, the +COPYPENDING parameter setting takes effect. For more information, see COPYPENDING .

Operands

YES

(Default) Sets COPY pending status

NO

Does not set COPY pending status

COPYDDN(lp,lb)

COPYDDN(lp,lb) tells BMC AMI Load to produce a primary and, optionally, a backup copy to the indicated local copy destinations.

The first value specifies a local primary (lp) copy; the second value specifies a local backup (lb) copy. If you specify COPYDDN, you must specify at least a local primary copy.

These values do not specify a DD name; they signify the intention to produce a copy to this destination. The actual unit name and options for the copy destinations are defined by the one of the following methods. The value of the OVERRIDEOUTPUT parameter determines the method that BMC AMI Load uses.

The following considerations apply to COPYDDN:

  • You cannot specify COPYDDN if you specify RESUME YES SHRLEVEL CHANGE.
  • (BMC.DB2.SPE2207) If copy data sets are not defined in the JCL, you must specify the BMC-AMI-Load-OUTPUT-command or make sure that the XCPYDYNM-dynamic-image-copy-data-set-allocation-automation-control-point is available to provide the image copy data set name for each image copy.
  • (BMC.DB2.SPE2207) BMC AMI Load supports COPY data sets defined in the JCL when loading a single partition or a non-partitioned table space. 
  • The parentheses are optional if you specify only one destination name (for example, COPYDDN LP1); the parentheses are required if you specify two DD names.
  • COPYDDN specified before the INTO TABLE can have two positional parameters, for example COPYDDN (A,B). COPYDDN coded after the INTO TABLE can have only one positional parameter, for example COPYDDN(A).
  • The following table shows the partitions that BMC AMI Load copies:

    Command

    Partition copied

    LOAD DATA INDDN SYSREC REPLACE COPYDDN(A) INTO TABLE A.B

    Whole table

    LOAD DATA INDDN SYSREC RESUME YES COPYDDN(A) INTO TABLE A.B

    Only the partitions that are loaded

    LOAD DATA INDDN SYSREC RESUME YES INTO TABLE A.B PART X REPLACE COPYDDN(A)

    Only the partitions that are loaded

    LOAD DATA INDDN SYSREC RESUME YES COPYDDN(A) INTO TABLE A.B PART X REPLACE

    Only the partitions that are loaded

    LOAD DATA INDDN SYSREC INTO TABLE A.B PART X REPLACE COPYDDN(A)

    Only partition X

FLASHCOPY

(BMC.DB2.SPE2307)

This option specifies whether to create a FlashCopy image copy for the BMC AMI Load job. The COPYLVL FULL request is ignored when you make FlashCopy image copies. FlashCopy image copies are created at the partition level.

For default processing, the use of COPY YES or only COPYDDN(dd1) without the use of the FLASHCOPY YES|NO creates a copy file that is determined by the FLASHCOPY_LOAD ZPARM value. Additionally, if you omit both the FLASHCOPY and COPY options, the use of only COPYDDN(dd1) creates a copy file that is determined by the FLASHCOPY_LOAD ZPARM value.  

Important

No copy files are created if you omit all the options: COPY, FLASHCOPY, COPYDDN, and RECOVERYDDN.

Operands

YES

The BMC AMI Load utility creates a FlashCopy image copy, no other standard copy files are created. 

The FLASHCOPY YES keyword is ignored, and only standard copies are created when you request Local Backup, Remote Primary, or Remote Backup standard copies. A Flashcopy is allowed only when you request a local primary copy.

When COPY YES is not specified, FLASHCOPY YES sets COPY YES.

When you specify both FLASHCOPY YES and COPYDDN, DSNUTILB processing will create both FlashCopy and standard image copy files for a single utility job run.

The FLASHCOPY YES setting is affected by the UTLPARMS +FLASHCOPY(REQUIRED|PREFERRED) parameter option. For more information, see FLASHCOPY.

NO

The BMC AMI Load utility does not create a FlashCopy image copy.

The use of FLASHCOPY NO and using the COPYDDN or RECOVERYDDN specification will create standard copy files.

The use of FLASHCOPY NO and ommitting the COPY YES, COPYDDN, and RECOVERYDDN specifications will result in no copy being created.


Important

BMC AMI Load outputs FlashCopy image copies to VSAM data sets. Because of this, the copy data set cannot be a generation data group (GDG) data set. Also, there will be a cluster and data entry, so the DSNAME must leave two bytes for the .D to be added. The XCPYDYNM-dynamic-image-copy-data-set-allocation-automation-control-point can produce a different name for FlashCopy data sets.

FCCOPYDDN DDName

(BMC.DB2.SPE2307)

FCCOPYDDN is optional. BMC AMI Load ignores FCCOPYDDN. FCCOPYDDN only for compatibility with IBM Db2 syntax.

Important

FCCOPYDDN keyword is a sub-parameter of FLASHCOPY YES, otherwise, the utility will fail as parameter is not recognized.

RECOVERYDDN(rp,rb)

RECOVERYDDN(rp,rb) tells BMC AMI Load to produce a primary and, optionally, a backup copy to the indicated remote copy destinations.

The first value specifies a remote primary (rp) copy; the second value specifies a remote backup (rb) copy.

These values do not specify a DD name; they signify the intention to produce a copy to this destination. The actual unit name and options for the copy destinations are defined by one of the following methods. The value of the OVERRIDEOUTPUT parameter determines the method that BMC AMI Load uses.

The following requirements and considerations apply to the RECOVERYDDN option:

 

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