Newer version of documentation BMC provides a newer version of the documentation for this version of the product. As a result, BMC no longer accepts comments in this space.BMC recommends upgrading to the latest version of the product. To see documentation for that version, see bao8301.

Understanding completion codes for EXEC-Initiated EXECs with WAIT(YES) and User-Written programs


Both EXEC-initiated EXECs with WAIT(YES) and user-written programs gain control of the thread while the execution of the initiating EXEC is suspended.

When the execution of the initiating EXEC is resumed the initiating EXEC can determine the success of the called EXEC or program by testing the BBI variables IMFCC and IMFRC.

If IMFCC is zero, meaning the EXEC (with the WAIT(YES) parameter) or user-written program was successfully scheduled, a separate local variable, IMFRC, will be set with the return code from the program or EXEC. A selected EXEC with WAIT(YES) can return this value by using the EXIT command. See EXIT. The following example causes IMFRC to be set to 12 when the calling EXEC receives control:

IMFEXEC EXIT CODE(12)

The following values of IMFCC are valid for SELECTed EXECs and programs:

Value

Description

00

program or EXEC scheduled

08

program or EXEC not found

20

severe error

Related topic

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*