CHAPTER 4

Sorting, Printing, and Summarizing Your Data

Multiple Choice

Short Answer

Programming Exercises

Multiple Choice

  1.   Which PROC requires a BY statement?

a.   PRINT

b.   SORT

c.   FREQ

d.   All of the above

  2.   Which WHERE statement using a mnemonic operator is equivalent to the following WHERE statement using a symbolic operator?

WHERE Temp ~= . ;

a.   WHERE Temp IS NOT MISSING ;

b.   WHERE Temp CONTAINS . ;

c.   WHERE Temp IN (.) ;

d.   All of the above

  3.   Suppose that you have a data set that includes the gender, age, and height of students in a class. Which BY statement will tell SAS to sort the data so that within each age (youngest to oldest), the data will be organized by males (tallest to shortest), followed by females ...

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