$EcfStat

From m204wiki
Jump to navigation Jump to search

$EcfStat returns the detailed completion code from the previous External statement.

Syntax

The $EcfStat function returns:

RC=cccc, COMPLETION CODE=tww, REASON CODE=rrrrrrrr

Where:

cccc Completion code in decimal format.
t ABEND type, either S for SYSTEM or U for USER.
ww

One of the following ABEND values:

SYSTEM values are three hexadecimal digits followed by a blank

USER values are four decimal digits

rrrrrrrr Reason code, eight hexadecimal digits

Usage

If ECF is not active or the user has not executed any External Call, External Delete, or External Load statements, a null string is returned.