O'Reilly logo

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

Chapter 1: Base Programming

  1. How many observations and variables does the data set below contain?
    image
    1. 3 observations, 4 variables
    2. 3 observations, 3 variables
    3. 4 observations, 3 variables
    4. can't tell because some values are missing
    Correct answer: c
    Rows in the data set are called observations, and columns are called variables. Missing values don't affect the structure of the data set.
  2. How many program steps are executed when the program below is processed?
    data user.tables; 
       infile jobs;  
       input date name $ job $;  
    run;  
    proc sort data=user.tables;  
       by name;  
    run;  
    proc print data=user.tables;  
    run;
    
    1. three
    2. four

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