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 ...

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