$EcfStat

From m204wiki
Revision as of 15:24, 19 July 2016 by Dme (talk | contribs)
Jump to navigation Jump to search

Function

Returns the detailed completion code from the previous External statement.

Syntax

The $ECFSTAT function returns:

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

Where

Arguments can be specified as

Argument Represents...
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.