Syntax and options of the REPORT control statement

The REPORT utility control statement, with its multiple options, defines the function that the utility job performs.

You can create a control statement with the ISPF/PDF edit function. After you create it, save it in a sequential or partitioned data set. When you create the JCL for running the job, use the SYSIN DD statement to specify the name of the data set that contains the utility control statement.

Start of change

Syntax diagram

Read syntax diagramSkip visual syntax diagram REPORT RECOVERYTABLESPACELISTlistdef-nametable-space-name-specINDEXNONEINDEXALLindex-list-specinfo-options-specTABLESPACESETTABLESPACEtable-space-name-specSHOWDSNSSHOWKEYLABEL
table-space-name-spec
Read syntax diagramSkip visual syntax diagramdatabase-name. table-space-name
index-list-spec
Read syntax diagramSkip visual syntax diagramINDEXSPACEdatabase-name.index-space-nameLISTlistdef-nameINDEXcreator-id.index-nameLISTlistdef-name
info-options-spec
Read syntax diagramSkip visual syntax diagramDSNUMALLDSNUMinteger CURRENT SUMMARY LOCALSITE RECOVERYSITE ARCHLOG1ARCHLOG2ALL
End of change

Option descriptions

RECOVERY
Indicates that recovery information for the specified table space or index is to be reported.

You can request recovery information for the local site, the recovery site, or both by using the LOCALSITE and RECOVERSITE options. If you request recovery information about the catalog and directory, specify the CURRENT option to avoid unnecessary mounting of archive tapes.

Recommendation: For image copies of partitioned table spaces that are taken with the DSNUM ALL option, run REPORT RECOVERY DSNUM ALL. If you run REPORT RECOVERY DSNUM ALL CURRENT, Db2 reports extra historical information that dates back to the last full image copy that was taken for the entire table space.
For a description of the information that REPORT RECOVERY provides, see REPORT output.
TABLESPACE database-name.table-space-name
For REPORT RECOVERY, specifies the table space (and, optionally, the database to which it belongs) that is being reported.
For REPORT TABLESPACESET, specifies a table space (and, optionally, the database to which it belongs) in the table space set.
database-name
Optionally specifies the database to which the table space belongs.
table-space-name
Specifies the table space.
LISTlistdef-name

Specifies the name of a previously defined LISTDEF list name. The utility allows one LIST keyword for each control statement of REPORT. The list must contain only table spaces. Do not specify LIST with the TABLESPACE…table-space-name specification. The TABLESPACE keyword is required to validate the contents of the list. REPORT RECOVERY TABLESPACE is invoked once per item in the list.

SHOWDSNS
Specifies that the VSAM data set names for each table space or index space are to be included in the TABLESPACESET report. Data set names for base objects are shown in the section titled TABLESPACE SET REPORT. Data set names for CLONE objects are shown in the section titled CLONE TABLESPACE SET REPORT. The later report is only prepared if the base objects have been cloned.
Start of changeIn certain situations, the following labels are shown in place of data set names:
  • A "NOT DEFINED" label is displayed for DEFINE NO objects until data is inserted or loaded into the objects.
  • A "NOT AVAILABLE" label is displayed when a data set is concurrently being deleted, renamed, or reset by another task. The label is displayed until the concurrent task completes and the data set is available again.
End of change
INDEXSPACE database-name.index-space-name
Specifies the index space that is being reported.
database-name
Optionally specifies the database to which the index space belongs.
index-space-name
Specifies the index space name for the index that is being reported.
LIST listdef-name

Specifies the name of a previously defined LISTDEF list name. The utility allows one LIST keyword for each control statement of REPORT. The list must contain only index spaces. Do not specify LIST with the INDEXSPACE index-space-name specification. The INDEXSPACE keyword is required in order to validate the contents of the list. REPORT RECOVERY INDEXSPACE is invoked once for each item in the list.

INDEX creator-id.index-name
Specifies the index in the index space that is being reported.
creator-id
Optionally specifies the creator of the index.
index-name
Specifies the index name that is to be reported. Enclose the index name in quotation marks if the name contains a blank.
LIST listdef-name

Specifies the name of a previously defined LISTDEF list name. The utility allows one LIST keyword for each control statement of REPORT. The list must contain only index spaces. Do not specify LIST with the INDEX…index-name specification. The INDEX keyword is required to validate the contents of the list. REPORT RECOVERY INDEX is invoked once for each item in the list.

The partitions or partition ranges can be specified in a list.

The following REPORT keywords are optional:

INDEX NONE
Specifies that recovery information for index spaces that are associated with the specified table space is not to be reported.
INDEX ALL
Specifies that recovery information for index spaces that are associated with the specified table space is to be reported.
DSNUM
Identifies a partition or data set for which information is to be reported. Alternatively, DSNUM specifies that information is to be reported for the entire table space or index space.
ALL
Specifies that information is to be reported for the entire table space or index space.
integer
Is the number of a partition or data set for which information is to be reported. The maximum is 4096.

For a partitioned table space or partitioned index space, the integer is its physical partition number.

For a nonpartitioned table space, find the integer at the end of the data set name, as cataloged in the VSAM catalog. The data set name has the following format:

catname.DSNDBx.dbname.tsname.y0001.Annn

In this format:

catname
Is the VSAM catalog name or alias.
x
Is C or D.
dbname
Is the database name.
tsname
Is the table space name.
y
Is I or J.
nnn
Is the data set integer.
CURRENT
Specifies that only the SYSCOPY entries that were written after the last recovery point of the table space are to be reported. The last recovery point is the last full image copy, LOAD REPLACE LOG YES image copy, or REORG LOG YES image copy. If you specify DSNUM ALL, the last recovery point is a full image copy that was taken for the entire table space or index space. If you specify the CURRENT option, but the last recovery point does not exist on the active log, Db2 prompts you to mount archive tapes until this point is found.

CURRENT also reports only the SYSLGRNX rows and archive log volumes that were created after the last incremental image copy entry. If no incremental image copies were created, only the SYSLGRNX rows and archive log volumes that were created after the last recovery point are reported.

If you do not specify CURRENT or if no last recovery point exists, all SYSCOPY and SYSLGRNX entries for that table space or index space are reported. The report includes entries on archive logs. If you do not specify CURRENT, the entries that were written after the last recovery point are marked with an asterisk (*) in the report.

SUMMARY
Specifies that only a summary of volume serial numbers is to be reported. It reports the following volume serial numbers:
  • Where the archive log data sets from the BSDS exist
  • Where the image copy data sets from SYSCOPY exist

If you do not specify SUMMARY, recovery information is reported, in addition to the summary of volume serial numbers.

LOCALSITE
Specifies that all SYSCOPY records that were copied from a local site system are to be reported.
RECOVERYSITE
Specifies that all SYSCOPY records that were copied from the recovery site system are to be reported.
ARCHLOG
Specifies which archive log data sets are to be reported.
1
Reports archive log data set 1 only.
2
Reports archive log data set 2 only.
ALL
Reports both archive log data sets 1 and 2.
TABLESPACESET
Indicates that the names of all table spaces in the table space set and the names of all indexes on those tables are to be reported.

For more information about table space sets, see the description of the TABLESPACESET option of the QUIESCE utility.

Start of changeFL 502 SHOWKEYLABELEnd of change
Start of changeSpecifies that the key label is shown for encrypted VSAM data sets for each table space or index space in the TABLESPACESET report.End of change