ON ERROR BADSTATUS
The ON ERROR BADSTATUS option allows you to specify what action
BMC AMI Copy
is to take if a space or partition is in an unacceptable status or has a BMC or Db2 utility running against it.
ON ERROR BADSTATUS syntax diagram

Values of ONERROR BADSTATUS
Value | Description |
|---|---|
ON ERROR BADSTATUS END | (Default) ON ERROR BADSTATUS END indicates BMC AMI Copy is to terminate processing with a RC=12. |
ON ERROR BADSTATUS SKIP | ON ERROR BADSTATUS SKIP causes BMC AMI Copy to issue a message, skip over the space, and continue processing other spaces specified in SYSIN. If a space is skipped because of ON ERROR BADSTATUS SKIP, the space will not be retried if the job abends and you retry the job with a NEW/RESTART. |
BMC AMI Copy checks for the conditions and issues the messages given in the following table:
Bad status condition | BMC AMI Copy message issued |
|---|---|
The space is in use by a Db2 utility. | BMC30121E SPACE databaseName.spaceName ALREADY IN USE BY A DB2 UTILITY |
The space is in use by a BMC utility. | BMC30123E SPACE databaseName.spaceName ALREADY IN USE BY UTILID utilid |
The space is in a status that is not supported by BMC AMI Copy. | BMC30124E SPACE databaseName.spaceName STATUS IS NOT ALLOWED, STATUS = xx |
A copy of a space was restarted in COPY phase and the status is incorrect for the SHRLEVEL. | BMC30126E SPACE databaseName.spaceName HAS STATUS INCONSISTENT WITH SHRLEVEL |
The space is in STOP status. | BMC30506E DATABASE IS UNAVAILABLE. STATUS = STOP |
The space was dropped during the copy. | BMC47302 I NO STATUS INFO FOR databaseName.spaceName. SPACE ASSUMED TO HAVE BEEN DROPPED. |
The index space copy requires a quiesce of the associated table space, and the table space cannot be quiesced. | BMC160642W spaceName’S RELATED TABLE SPACE spaceName CANNOT BE QUIESCED |
Related topic