$EcfStat: Difference between revisions
Jump to navigation
Jump to search
m (misc cleanup) |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
< | <p> | ||
< | <var>$EcfStat</var> returns the detailed completion code from the previous <var>[[External statement|External]]</var> statement. </p> | ||
< | ==Syntax== | ||
<p class=" | <p> | ||
The <var>$EcfStat</var> function returns:</p> | |||
<p class="syntax">RC=<span class="term">cccc</span>, COMPLETION CODE=<span class="term">tww</span>, REASON CODE=<span class="term">rrrrrrrr</span> | |||
</p> | </p> | ||
Where: | |||
<table> | <table> | ||
<tr | <tr><th>cccc </th> | ||
<th> | |||
<td>Completion code in decimal format.</td> | <td>Completion code in decimal format.</td> | ||
</tr> | </tr> | ||
<tr> | |||
< | <tr><th>t </th> | ||
<td>ABEND type, either S for SYSTEM or U for USER.</td> | <td>ABEND type, either S for SYSTEM or U for USER.</td> | ||
</tr> | </tr> | ||
<tr> | |||
< | <tr><th>ww </th> | ||
<td> | <td> | ||
<p>One of the following ABEND values:</p> | <p>One of the following ABEND values:</p> | ||
<p>SYSTEM values are three hexadecimal digits followed by a blank </p> | <p>SYSTEM values are three hexadecimal digits followed by a blank </p> | ||
<p>USER values are four decimal digits</p> | <p>USER values are four decimal digits</p> | ||
</td> | </td></tr> | ||
</tr> | |||
<tr> | <tr><th>rrrrrrrr </th> | ||
< | |||
<td>Reason code, eight hexadecimal digits</td> | <td>Reason code, eight hexadecimal digits</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
<p>If ECF is not active or the user has not executed any | ==Usage== | ||
<p> | |||
If ECF is not active or the user has not executed any <var>External Call</var>, <var>External Delete</var>, or <var>External Load</var> statements, a null string is returned.</p> | |||
[[Category:SOUL $functions]] | [[Category:SOUL $functions]] |
Latest revision as of 20:12, 20 July 2016
$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.