$EcfStat: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Mlarocca moved page $ECFSTAT to $EcfStat: Lower case change)
No edit summary
Line 1: Line 1:
<b>Function</b>
<b>Function</b>
<p>Returns the detailed completion code from the previous EXTERNAL statement. </p>
<p>Returns the detailed completion code from the previous <var>[[External statement|External]]</var> statement. </p>
<b>Syntax</b>
<b>Syntax</b>
<p>The $ECFSTAT function returns:</p>
<p>The $ECFSTAT function returns:</p>

Revision as of 15:24, 19 July 2016

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.