VMS Help  —  READ  Qualifiers  /ERROR
       /ERROR=label

    Transfers control to the location specified by the label keyword
    (in the current command procedure) when a read error occurs.
    If no error routine is specified and an error occurs during the
    reading of the file, the current ON condition action is taken.

    Overrides any ON condition action specified.

    If an error occurs and the target label is successfully given
    control, the reserved global symbol $STATUS retains the error
    code.
Close Help