Bypassing spaces with a bad status
Use ON ERROR BADSTATUS SKIP to bypass the space or partition, issue a message, and continue processing. Use ON ERROR BADSTATUS END to tell
BMC AMI Copy
to terminate processing with an RC=12.
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. Here is an example:
COPY TABLESPACE a.a, a.b, a.c
ON ERROR BADSTATUS SKIP
ON ERROR BADSTATUS SKIP
If table space a.b is skipped because of a status problem and the copy abends in the COPY phase while copying table space a.c, when the copy is restarted, BMC AMI Copy ignores table space a.b and restarts table space a.c in the COPY phase.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*