Chapter 4: Creating List Reports

  1. Which PROC PRINT step below creates the following output
    image
    1. proc print data=flights.laguardia noobs; 
         var on changed flight; 
         where on>=160; 
      run;
      
    2. proc print data=flights.laguardia; 
         var date on changed flight; 
         where changed>3; 
      run;
      
    3. proc print data=flights.laguardia label; 
         id date; 
         var boarded transferred flight; 
         label boarded='On' transferred='Changed'; 
         where flight='219'; 
      run;
      
    4. proc print flights.laguardia noobs;  
         id date; 
         var date on changed flight; 
         where flight='219'; 
      run;
      
    Correct answer: c
    The DATA= option specifies the data set that you are listing, and the ID statement replaces ...

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.