$Status: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 15: | Line 15: | ||
<tr> | <tr> | ||
<td>Communication statements </td> | <td>Communication statements </td> | ||
<td>[[Program | <td>[[Program communications facilities]]</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 22: | Line 22: | ||
</tr> | </tr> | ||
</table> | </table> | ||
<ul> | <ul> | ||
<li>List of $STATUS return values, refer to [[Program | <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> | ||
</li> | </li> | ||
</ul> | </ul> |
Revision as of 17:34, 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 |
- 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 . . .