Error Messages

Types of Errors

SAS can detect several types of errors. Here are two common ones:
  • syntax errors that occur when program statements do not conform to the rules of the SAS language
  • semantic errors that occur when you specify a language element that is not valid for a particular usage

Syntax Errors

When you submit a program, SAS scans each statement for syntax errors, and then executes the step (if no syntax errors are found). SAS then goes to the next step and repeats the process. Syntax errors, such as misspelled keywords, generally prevent SAS from executing the step in which the error occurred.
Notes are written to the SAS log when the program finishes executing. When a program that contains an error ...

Get SAS Certified Specialist Prep Guide now with O’Reilly online learning.

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