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 Certification Prep Guide, 5th Edition 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.