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 Quiz

Select the best answer for each question. After completing the quiz, you can check your answers using the answer key in the appendix.
  1. Which program creates the output shown below?
    Output 1
    Output 1
    Output 2
    Output 2
    1. data test2;
         infile furnture;
         input StockNum $ 1-3 Finish $ 5-9 Style $ 11-18             
               Item $ 20-24 Price 26-31;       
         if finish='oak' then delete; 
         retain TotPrice 100; 
         totalprice+price;    
         drop price; 
      run; 
      proc print data=test2 noobs; 
      run;
      
    2.  data test2; infile furnture; input StockNum $ 1-3 Finish $ 5-9 Style $ 11-18 Item $ 20-24 Price ...

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