IDBATCH IDADRUNP01I: Run Completed, RC=0 after database error
search cancel

IDBATCH IDADRUNP01I: Run Completed, RC=0 after database error

book

Article ID: 197762

calendar_today

Updated On:

Products

Ideal

Issue/Introduction

An Ideal user program is run in batch via IDBATCH . It encounters a database error, for example, an RC 05 (34)  but it still completes with a return code of 0. 

IDADRUNP01I: Run Completed, RC=0 

Environment

z/OS

Ideal 15.1

Cause

This can be caused by coding an error procedure and not setting the return code in $RC.

Resolution

If an error procedure is coded, it must set the $RC before exiting and before a LIST ERROR command.

For example, the default error procedure is coded like this:

<<ERROR>> PROCEDURE
    IF $RC LT 12
        SET $RC EQ 12
    ENDIF
    LIST ERROR
    BACKOUT
    QUIT RUN
ENDPROC

 

Additional Information

See Ideal documentation section Error Handling.