$Status

From m204wiki
Revision as of 13:18, 20 April 2013 by Alex (talk | contribs) (Automatically generated page update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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