SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Creating Variables
Assigning Values Conditionally


Question: For the observation shown, what is the result of the IF-THEN statement below?
Age AgeCheck Time Error
31 31 2 1

if (age not eq agecheck or time not eq 3)
   and error eq 1 then Test=1;
The THEN statement isn't executed.
The value of Test is set to missing.
The value of Test is set to 1.


  back||next

 

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

Terms of Use & Legal Information | Privacy Statement