Chapter 11

Debugging Your SAS Programs

Multiple Choice

Short Answer

Programming Exercises

Multiple Choice

1. Using the FIRSTOBS= and OBS= options will control the number of lines of raw data read by which statement?

a. INFILE

b. SET

c. PROC PRINT

d. All of the above

2. Writing programs that are easy to read will make your code easier to debug. Which of the following is not just a simple habit that you can use to make programs easier to read?

a. Placing each statement on a new line

b. Indenting statements within DATA and PROC steps

c. Using DO and END statements

d. Using comments in your program

3. Which type of log message will prevent your program from running?

a. Errors

b. Warnings

c. Notes

d. All of the above

4. Which option will tell SAS ...

Get Exercises and Projects for The Little SAS Book, Sixth 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.