GENJCL option descriptions


You can have multiple GENJCL statements in the ARMIN data set to produce a backup or recover JCL for each of your object sets.
This topic describes these object sets.

RECOVER

Specify that the JCL is for recovery. Specify XUNCHANGED to exclude unchanged objects from the recover JCL. Also, specify the type of recovery you want.

Option

Description

XUNCHANGED

For local point-in-time recoveries, this option instructs ARMBGEN to analyze SYSLGRNX information and identify those objects that have not been changed between the recovery time and the current time.

For full subsystem recoveries (local point-in-time recoveries via a conditional restart), ARMBGEN analyzes the BMC AMI Recovery Manager log range file (ARMLGRNX DD) to identify unchanged objects.

The objects that are marked as UNCHANGED are excluded from the recovery JCL. Objects in WRITE PENDING status are included in the recovery even if they are still marked as UNCHANGED. This option can significantly reduce the time required for recovery by eliminating unnecessary processing.

Updates are not logged for indexes unless they were created with the COPY YES attribute. XUNCHANGED processing does not occur for indexes unless they have the COPY YES attribute.

This option is ignored if you select a recovery to the current time or if you specify SITETYPE=RECOVERY.

Important

Organizations with heavy update activity may experience contention on SYSLGRNX when this option is used. Objects with large numbers of log ranges may increase the elapsed time of JCL generation. 

Use the BMC AMI Copy MODIFY option or the IBM MODIFY utility to remove old entries. For more information, see the BMC AMI Copy for Db2 documentation or the IBM documentation.

TOCURRENT

This type of recovery is the default. When you specify a recovery to the current time, the most recent full and incremental copies are used to recover the spaces. Then, the Db2 log records are used to make the space's current. The RECOVER syntax defaults to TOCURRENT.

TOLOGPOINT

Specify this type of recovery when you want to recover to a log point (RBA or LRSN). You must supply the value (a 12-digit hexadecimal number).

TORESTARTRBA

Specify this type of recovery when making preparations at the local site to recover applications at a recovery site. When you specify this type of recovery, ARMBGEN retrieves the RBA stored by ARMBSRR. This action ensures that the recovery JCL will be ready for use at a recovery site after the system-resource recovery jobs generated by ARMBSRR are run.

This option is for local site use only and should not be used at a recovery site as part of disaster recovery.

Important

The analysis for this type of recovery is the same as a recovery to an RBA. However, because the actual recovery is done after a conditional restart, BMC AMI Recovery Manager generates JCL to perform recovery to the current.

TOCOPY

Specify this type of recovery to recover to a specific full image copy or an incremental image copy registered in SYSIBM.SYSCOPY. You identify the copy by specifying a number from 0 through 99, where 0 represents the most recent copy made and 99 represents the 100th previous copy.

For the purpose of identifying the copy, a DFSMS concurrent copy is registered in SYSIBM.SYSCOPY is counted as an image copy.

When you specify OBJECTSET syntax for BMC AMI Recover with TOCOPY syntax, BMC AMI Recovery Manager generates the following syntax:

RECOVER OBJECTSET creator.name
TOCOPY LASTCOPY(-1)

TOFULLCOPY

Specify this type of recovery to recover only to a specific full image copy registered in SYSIBM.SYSCOPY. You identify the copy by specifying a number from 0 through 99, where 0 represents the most recent copy made and 99 represents the 100th previous copy. BMC AMI Recovery Manager ignores any existing incremental image copies when searching for the specified previous copy.

For the purpose of identifying the copy, a DFSMS concurrent copy is registered in SYSIBM.SYSCOPY is counted as an image copy.

Important

You cannot specify TOFULLCOPY when you specify OBJECTSET because this is not supported by BMC AMI Recover.

TOQUIESCE

Specify this type of recovery when you want to recover each object to a specified quiesce point registered in SYSIBM.SYSCOPY by the Db2 QUIESCE command.

Specify the quiesce point by using the keyword MINUS n, where n is a number from 0 through 99. The default is MINUS 0, the most recent quiesce point.

When you specify OBJECTSET syntax for BMC AMI Recover with TOQUIESCE syntax, BMC AMI Recovery Manager generates the following syntax:

RECOVER OBJECTSET creator.name
TOLOGPOINT LASTQUIESCE(0)

TOCOMMONRECPT

Specify this type of recovery when you want to recover all objects to the same point. Similar to recover to quiesce, you identify the common point by specifying a number from 0 through 99, where 0 is the most recent common point.

This option considers only recovery points that are common to all table spaces in the object set.

TOTIMESTAMP

This option requires the Recovery Management for Db2 solution password and the recovery utility is BMC AMI Recover. The option is valid on both data-sharing systems and non-data-sharing systems. The timestamp recovery feature of Recovery Management for Db2 solution uses inflight resolution technology to perform a consistent point-in-time recovery to any user-specified timestamp. The Recovery Management solution translates the timestamp to a log point, recovers the objects, then resolves all inflight units of work for both data-sharing and non-data-sharing systems.

  • yyyy-mm-dd-hh.mm.ss.tttttt —Specify a specific timestamp in the yyyy-mm-dd-hh.mm.ss.tttttt format.
  • CURRENT MINUS HOURS n—Specifies the number of hours to subtract from the current TIMESTAMP. The valid values are from 1 to 960. This option is mutually exclusive with CURRENT_MINUS_DAYS n.
  • CURRENT MINUS DAYS n—Specifies the number of days to subtract from the current TIMESTAMP. The valid values are from 1 to 40. This option is mutually exclusive with CURRENT_MINUS_HOURS n.

For more information about timestamp recovery, see the Recovery Management for Db2 documentation.

TOLOGMARK

Specify this type of recovery to recover to a BMC AMI Log Master for Db2 log mark, which is registered in the BMC AMI Log Master ALPMARK table. You identify the log mark by specifying the log mark name and a version number from 0 through 99, where 0 represents the most recent log mark made and 99 represents the 100th previous log mark. The generated JCL will recover to the log point represented by the log mark.

This option requires the use of a Recovery Management for Db2 solution password and use of BMC AMI Recover as the recovery utility.

BACKUP

Use the command GENJCL BACKUP to create backup JCL for the specified object set. The copy utility, type of copy, and all options for the object set are retrieved from the repository.

You can have multiple GENJCL BACKUP statements in the ARMIN data set.

Option

Description

XUNCHANGED

When you use this option, ARMBGEN analyzes SYSCOPY and SYSLGRNX information to exclude spaces that have not changed since the last backup. This option can significantly reduce the time required for backing up by eliminating unnecessary processing.

You must decide the frequency of full system backups versus backups that exclude unchanged spaces. For example, you could make backups that exclude unchanged objects on a daily basis, while performing a full system backup once per week.

COPY _ IMAGECOPY_SLB


Use this option to generate BMC AMI Copy COPY IMAGECOPY system-level backup job.

Specify Copy All Indexes Yes from General backup options to include all indexes for the table spaces that are included in the object set. This is the INDEXES YES option of BMC AMI Copy.

Important

The Copy Utility specified in general backup options for the object set must be the BMC AMI Copy utility.

See Copy All Indexes entry in General backup options .

REGISTEROCC


Use this option to specify whether online consistent copies should be registered in SYSCOPY or BMCXCOPY.

Important

This option is available only when BMC AMI Copy is selected as the copy utility.

Value

Description

SYSCOPY

Specifies that online consistent copies should be registered in the SYSCOPY catalog table.

BMCXCOPY

(Default) Specifies that online consistent copies should be registered in the BMCXCOPY repository table.

COPYTOCOPY


The COPYTOCOPY utility makes image copies from an image copy that was taken by the COPY utility.

Value

Description

FROMLASTCOPY

(Default) Specifies the most recent image copy that was taken for the table space or index space to be the input for the COPYTOCOPY utility

FROMLASTFULLCOPY

Specifies the most recent full image copy that was taken for the object to be the input for the COPYTOCOPY job

FROMLASTINCRCOPY

Specifies the most recent incremental image copy that was taken for the object to be the input for the COPYTOCOPY job

FROMLASTFLASHCOPY

Specifies the most recent flash image copy that was taken for the object to be the input for the COPYTOCOPY job

Important

FROMLASTFLASHCOPY is not valid with INDEXSPACE or INDEX keywords.

OBJECTSET

You must provide an object set name in the form creator.name . You can use a wildcard pattern to specify multiple object sets in a single GENJCL statement. If BMC AMI Recovery Manager finds an explicit object set name for an object set created by the ARMBGPS program, BMC AMI Recovery Manager processes the entire set of object sets.

Option

Description

ALTLOAD

This option enables you to specify a load library that contains BMC AMI Recovery Manager. This load library is generated in steplibs.

UPDATE

Update object set backup and recovery option settings for the specified object set or object sets. This is the OBJECTSET UPDATE feature of the ARMBGRP program and all options are described in detail in ARMBGRP—Object set creation and maintenance.

Warning

The changes that you make to backup and recovery options using the ARMBGEN program are not stored in the repository and are in effect only for the duration of the ARMBGEN execution. If you want the options to be saved with the specified object sets and remain in effect for future backup and recoveries, set them using the ARMBGRP program or by using the online interface.

RECOVER_OPTIONS

Specifies the recovery options to be updated. For a syntax diagram of the recover options, see Syntax-for-updating-object-set-options. For descriptions of all options that you can update, see Copy-and-recover-utility-options.

COPY_OPTIONS

Specifies the copy options to be updated. For a syntax diagram of the copy options, see Syntax-for-updating-object-set-options. For descriptions of all options that you can update, see Copy-and-recover-utility-options.

 

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