SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Creating Variables
Executing Multiple Statements Conditionally


Question:
Given the values in the observation below and based on what you know about the statements in this DATA step, what value of Status is written to the data set for this observation?

Test Time Units
85 20 8

     data prodctn.qualtest;
        set test34.times;
        if test<85 and time<=20 then
           do;
              Status='Retest';
              Redo+units;
           end;
        else Status='Accepted';
     run;
  Retest
  Accepted
  Neither of the above


  back||next

Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement