O'Reilly logo

Step-by-Step Programming with Base SAS 9.4 by SAS Institute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required