BPA0022E error despite specifying .RESTART in Batch Processor
search cancel

BPA0022E error despite specifying .RESTART in Batch Processor

book

Article ID: 280567

calendar_today

Updated On:

Products

DATABASE MANAGEMENT SOLUTIONS FOR DB2 FOR Z/OS

Issue/Introduction

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.

 

Cause

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.

Resolution

Remove the .AUTH command from the BPIOPT DD cards.