Distinguishing Types of Errors

SAS Programming Errors

The following types of errors can occur when SAS compiles and executes your program:
  • syntax
  • execution-time
  • data
  • semantic

Syntax Errors

Syntax errors are errors that are made in the SAS statements of a program. They occur when program statements do not conform to the rules of the SAS language. SAS detects syntax errors as it compiles each DATA and PROC step. These are some of the types of syntax errors:
  • misspelled SAS keywords
  • unmatched quotation marks
  • missing or invalid punctuation
  • invalid statement or data set options

Execution-time Errors

Execution-time errors cause a program to fail when it is submitted for execution. Most execution-time errors ...

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.