$Status: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 21: Line 21:


<tr>
<tr>
<td>[[$RDPROC]]</td>
<td>[[$RdProc]]</td>
<td>[[$RDPROC#$RDPROC|$RDPROC]]</td>
<td>[[$RdProc#$RdProc|$RdProc]]</td>
</tr>
</tr>
</table>
</table>

Revision as of 14:16, 29 July 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 . . .