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 10: Creating and Managing Variables

  1. Which program creates the output shown below?
    image
    image
    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 26-31;       
         if finish='oak' and price<200 then delete;       
         TotalPrice+price;        
      run;        
      proc print data=test2 noobs;        
      run;
      
    3.  data ...

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