$Status: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
Line 1: | Line 1: | ||
<p>The $ | <p> | ||
The <var>$Status</var> function returns a numeric value that indicates the success or failure of the last executed <var>OPEN/OPENC</var> statement, external I/O statement or program communication statement. </p> | |||
<table> | <table> | ||
<tr class="head"> | <tr class="head"> | ||
Line 5: | Line 6: | ||
<th>See</th> | <th>See</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Error handling with the OPEN and OPENC statements </td> | <td>Error handling with the <var>OPEN</var> and <var>OPENC</var> statements </td> | ||
<td>[[Files, groups, and reference context#Error handling|Error handling]]</td> | <td>[[Files, groups, and reference context#Error handling|Error handling]]</td> | ||
</tr> | </tr> | ||
Line 17: | Line 19: | ||
<tr> | <tr> | ||
<td>Communication statements </td> | <td>Communication statements </td> | ||
<td>[[Program | <td>[[Program Communication facilities]]</td> | ||
</tr> | </tr> | ||
Line 26: | Line 28: | ||
</table> | </table> | ||
< | For a list of <var>$Status</var> return values, refer to [[Program Communication facilities#Error handling for TPROCESS statements|Error handling for TPROCESS statements]]. | ||
< | |||
The <var>$Status</var> function takes no arguments. | |||
==Example== | |||
<p class="code"> . | <p class="code"> . | ||
. | . | ||
Line 44: | Line 46: | ||
. | . | ||
</p> | </p> | ||
[[Category:SOUL $functions]] | [[Category:SOUL $functions]] |
Revision as of 20:45, 20 October 2014
The $Status function returns a numeric value that indicates the success or failure of the last executed OPEN/OPENC statement, external I/O statement or program communication statement.
For a discussion of... | See |
---|---|
Error handling with the OPEN and OPENC statements | Error handling |
External I/O statements | Reading external files or terminal input |
Communication statements | Program Communication facilities |
$RdProc | $RdProc |
For a list of $Status return values, refer to Error handling for TPROCESS statements.
The $Status function takes no arguments.
Example
. . . READ IMAGE ACCT.RECV.REC IF $STATUS = 0 THEN CALL PROCESS.AR ELSE LOOPEND END IF . . .