Diagnosing and Avoiding Errors |
When SAS detects an error, it usually underlines the error 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. SAS 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 read from SAS data sets execute with 0 observations, and procedures that do not read SAS data sets execute normally. A syntax error in a PROC step usually affects only that step. At the end of the step, SAS writes a message in the SAS log for each error that is detected.
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.