Understanding How SAS Processes Errors

When SAS detects an error, it usually underlines the error in the log or underlines the point at which it detects the error, identifying the error with a number. Each number is uniquely associated with an error message. Then SAS enters syntax check mode, and reads the remaining program statements, checks their syntax, and underlines additional errors if necessary.
In a batch or noninteractive program, an error in a DATA step statement causes SAS to remain in syntax check mode for the rest of the program. It does not execute any more DATA or PROC steps that create external files or SAS data sets. Procedures that are read from SAS data sets execute with 0 observations, and procedures that do not read SAS ...

Get Step-by-Step Programming with Base SAS 9.4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.