ERRORBYABEND System Option

Specifies whether SAS ends a program when an error occurs in BY-group processing.
Valid in: Configuration file, SAS invocation, OPTIONS statement, SAS System Options window
Category: Environment control: Error handling
PROC OPTIONS GROUP= ERRORHANDLING
Note: This option can be restricted by a site administrator. For more information, see Restricted Options.

Syntax

Syntax Description

ERRORBYABEND
specifies that SAS ends a program for BY-group error conditions that would normally cause it to issue an error message.
NOERRORBYABEND
specifies that SAS handle BY-group errors normally, that is, by issuing an error message and continuing processing.

Details

If SAS encounters one or more BY-group errors while ERRORBYABEND is in effect, SAS brings the errors to your attention immediately by ending your program. ERRORBYABEND does not affect how SAS handles notes that are written to the SAS log.
Note: Use the ERRORBYABEND system option with SAS production programs that should be error free.

See Also

System Options: