Debugging a DATA Step

Diagnosing Errors in the Compilation Phase

Errors that are detected during the compilation phase include these:
  • misspelled keywords and data set names
  • unbalanced quotation marks
  • invalid options
During the compilation phase, SAS can interpret some syntax errors (such as the keyword DATA misspelled as DAAT). If it cannot interpret the error, SAS does the following:
  • prints the word ERROR followed by an error message in the SAS log
  • compiles but does not execute the step where the error occurred, and prints the following message:
    NOTE: The SAS System stopped processing this step because of errors.
Some errors are explained fully by the message that SAS prints; other error messages are not ...

Get SAS Certification Prep Guide, 5th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.