Reference Guide > O Routines > ON_IOERROR Procedure
  

ON_IOERROR Procedure
Specifies a statement to jump to if an I/O error occurs in the current procedure.
Usage
ON_IOERROR, label
Input Parameters
label—The statement to jump to. Note that label is not a string variable, but is rather the statement label (without the trailing colon).
Keywords
None.
Discussion
Normally when an input/output error occurs, an error message is printed and program execution is stopped. If ON_IOERROR is called and an I/O related error later occurs in the same procedure activation, control is transferred to the designated statement with the error code stored in the system variable !Err. The text of the error message is contained in the system variable !Err_String.
Example
; The effect of ON_IOERROR is canceled by using null as the label.
ON_IOERROR, null
See Also
!Err, !Err_String, ON_ERROR, OPEN (UNIX), OPEN (Windows), READ, RETALL, RETURN, STOP, WRITEU
Additional information can be found in the PV‑WAVE Programmer’s Guide.

Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.