When executing the Database Management for Db2 for z/OS Post Install Create job (ssid0001),
encountering the the following error:
BPA0022E BPID IS FLAGGED INCOMPLETE - RESTART IS REQUIRED
What needs to be done to resolve this error so the job can continue?
The BPA0022E message indicates a log record found for the specified BPID has an incomplete status.
The .RESTART command must be used to restart the job. This could be caused by the job being submitted
a second time without a .RESTART command or an old log record with the same name exists on table
PTI.BPLOG_0203 from a Batch Processor job run long ago.
If the BPA0022E message is due to the job being submitted for a second time due to a previous error,
add a new line with .RESTART SYNC after the .OPTION card. This will cause the job to restart after the
last successful SYNC point.
The following is an example of .RESTART SYNC added to the Batch Processor //BPIOPT DD:
.CONTROL BPID(highlvl.CONTROL-ssidDDL) +
LOGID(ssid) UNIT(SYSDA)
.LIST SYSOUT(*)
.OPTION ERRORS NOSQLERRORS RETRY(24) NOBINDERRORS
.RESTART SYNC
.CONNECT ssid
If the BPA0022E message is due to an old log record with the same name for a job run log ago, either
modify the BPID within parenthesis after the BPID entry on the .CONTROL statement or
add .RESTART OVERRIDE after the .OPTION card. The following is an example of .RESTART OVERRIDE
added to the Batch Processor //BPIOPT DD:
.CONTROL BPID(highlvl.CONTROL-ssidDDL) +
LOGID(ssid) UNIT(SYSDA)
.LIST SYSOUT(*)
.OPTION ERRORS NOSQLERRORS RETRY(24) NOBINDERRORS
.RESTART OVERRIDE
.CONNECT ssid
** Note - Special care should be taken if specifying .RESTART OVERRIDE as this will rerun the Batch Processor
input stream over from the beginning.
Documentation:
R18 and later - https://techdocs.broadcom.com (See Restart Batch Processor Jobs and Restart Command)