$Status: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
 
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<p>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. </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>
<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>[[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>
<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#Program Communications Facilities|Program Communications Facilities]]</td>
<td>[[Program Communication facilities]]</td>
</tr>
</tr>
<tr>
<tr>
<td>[[$RDPROC]]</td>
<td>$RdProc</td>
<td>[[$RDPROC#$RDPROC|$RDPROC]]</td>
<td>[[$RdProc]]</td>
</tr>
</tr>
</table>
</table>
<ul>
 
<li>List of $STATUS return values, refer to [[Program Communications Facilities#Error handling for TPROCESS statements|Error handling for TPROCESS statements]]. The $STATUS function takes no arguments. </li>
For a list of <var>$Status</var> return values, refer to [[Program Communication facilities#Error handling for TPROCESS statements|Error handling for TPROCESS statements]].  
</li>
 
</ul>
The <var>$Status</var> function takes no arguments.  
<b>Example</b>
 
==Example==
<p class="code">    .
<p class="code">    .
     .
     .
Line 37: Line 43:
     END IF
     END IF
     .
     .
      .
    .
     .   
     .   
</p>
</p>
[[Category:SOUL $functions]]
[[Category:SOUL $functions]]

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 . . .