Unsuccessful recovery start

If an error is detected in a RECOVER statement, messages describing the error are inserted in the JCL, and the incorrect statement (and possibly the position within the statement where the error was detected) is identified. The position is identified by the character A in the inserted message, as indicated in the following example:
//*>OPC SCAN
//SAMPLEA JOB (885002,NOBO),SAMPLE,NOTIFY=XMAWS,MSGCLASS=Q,
//  CLASS=B,MSGLEVEL=(1,1),PRTY=1
//*%OPC RECOVER JOBCODE=JCL,RESTART=N,ADAPPL=RECOV
//* OPC MSG:                          A
//* OPC MSG: E  INCORRECT PARAMETER
//STEP1 EXEC PGM=IEFBR14
//DD1  DD  DSN=XMAWS.NOT.THERE,DISP=(OLD,DELETE,DELETE)
//

If an exit requests termination of the recovery attempt or if it requests saving of the JCL but no restart, this request is also logged in the JCL. Message statements are added to the JCL close to the RECOVER statement.

If an error cannot be associated with a particular JCL record, message statements are added at the start of the JCL.

Note: RECOVER statements are checked only when a job fails.