A Batch Processor job that has been restarted using the .RESTART SYNC command, fails unexpectedly with error BPA0022E indicating that .RESTART has not been specified.
The BPIOPT DD cards are as follows:
//BPIOPT DD *
.CONTROL BPID(bpid) +
LOGID(ssid) UNIT(SYSALLDA) THREADS(1)
.AUTH
.LIST SYSOUT(*)
.OPTION ERRORS NOSQLERRORS RETRY(24) NOBINDERRORS
.RESTART SYNC
.CONNECT ssid
The .RESTART is ignored and the job fails:
BPA0022E: BPID IS FLAGGED INCOMPLETE - RESTART IS REQUIRED.
Reviewing the JCL, there is a .AUTH command in the JCL which has been added manually.
Batch Processor fails, as it tries to process this command before it processes the .RESTART command.
Remove the .AUTH command from the BPIOPT DD cards.