## 10.6.10 ERR Keyword

The ERR keyword identifies the executable statement that receives control when an error occurs. It takes the following form:

    ERR = s

s
  Is the label of an executable statement.

The ERR keyword applies only to the OPEN statement in which it is specified, not to subsequent I/O operations on the unit. If an error occurs, no file is opened or created. However, you can use the IOSTAT keyword in subsequent I/O statements to perform a similar function.

Secondary operating system messages do not display when IOSTAT is specified. To display these messages, remove IOSTAT or use a platform-specific method. (For more information, see your user manual.)

For More Information:

For details on using the IOSTAT parameter in a control list, see Section 7.1.1.9.

Previous Page Next Page Table of Contents