Chapter 3: Editing and Debugging SAS Programs

  1. As you write and edit SAS programs it's a good idea to
    1. begin DATA and PROC steps in column one.
    2. indent statements within a step.
    3. begin RUN statements in column one.
    4. do all of the above.
    Correct answer: d
    Although you can write SAS statements in almost any format, a consistent layout enhances readability and enables you to understand the program's purpose. It's a good idea to begin DATA and PROC steps in column one, to indent statements within a step, to begin RUN statements in column one, and to include a RUN statement after every DATA step or PROC step.
  2. Suppose you have submitted a SAS program that contains spelling errors. Which set of steps should you perform, in ...

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.