$Status: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 7: Line 7:
<tr>
<tr>
<td>Error handling with the OPEN and OPENC statements </td>
<td>Error handling with the OPEN and OPENC 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>
<tr>
<tr>
<td>External I/O statements </td>
<td>External I/O statements </td>
<td>[[Images#Reading external files or terminal input|Reading external files or terminal input]]</td>
<td>[[Images#Reading external files or terminal input|Reading external files or terminal input]]</td>
</tr>
</tr>
<tr>
<tr>
<td>Communication statements </td>
<td>Communication statements </td>
<td>[[Program communications facilities]]</td>
<td>[[Program communications facilities]]</td>
</tr>
</tr>
<tr>
<tr>
<td>[[$RDPROC]]</td>
<td>[[$RDPROC]]</td>

Revision as of 20:35, 2 January 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 communications facilities
$RDPROC $RDPROC

Example

. . . READ IMAGE ACCT.RECV.REC IF $STATUS = 0 THEN CALL PROCESS.AR ELSE LOOPEND END IF . . .