Resolving Common Problems

Overview

In addition to correcting spelling mistakes, you might need to resolve several other types of common syntax errors. These errors include
  • omitting semicolons
  • leaving quotation marks unbalanced
  • specifying invalid options.
Another common problem is omitting a RUN statement at the end of a program. Although this is not technically an error, it can produce unexpected results. For the sake of convenience, we'll consider it together with syntax errors.
The table below lists these problems and their symptoms.
Identifying Problems in a SAS Program
Problem
Symptom
missing RUN statement
“PROC (or DATA) step running” at top of active window
missing semicolon
log message indicating ...

Get SAS Certification Prep Guide: Base Programming for SAS 9, Third 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.