$EcfStat: Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
|
(No difference)
|
Revision as of 13:27, 17 July 2014
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.