The ERROR statement
sets the automatic variable _ERROR_ to 1. Writing a message that you
specify to the SAS log is optional. When _ERROR_ = 1, SAS writes the
data lines that correspond to the current observation in the SAS log.
Using ERROR is equivalent
to using these statements in combination:
-
an assignment statement setting
_ERROR_ to 1
-
-
a PUT statement (if you specify
a message)
-
a PUT; statement (if you do not
specify a message)
-
another FILE statement resetting
FILE to any previously specified setting.