$EcfStat

From m204wiki
Revision as of 13:18, 20 April 2013 by Alex (talk | contribs) (Automatically generated page update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.