$Status: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (link repair)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<p>
<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>
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 8: Line 8:


<tr>
<tr>
<td>Error handling with the <var>OPEN</var> and <var>OPENC</var> statements </td>
<td>[[Handling errors in file/group open statements]]</td>
<td>[[Files, groups, and reference context#Error handling|Error handling]]</td>
<td>[[Handling errors in file/group open statements|(same)]]</td>
</tr>
</tr>



Latest revision as of 08:11, 10 November 2019

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
Handling errors in file/group open statements (same)
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 . . .