Hello, I'm preparing for SAS base certification and I require some clarification regarding the below question. Data Step Data work.Test; Infile ‘c:\class1.csv’ dsd; Input Name $ Sex $ Age Height; If Age NE 16 and Age NE 15 then Group = 1; Else Group = 2; Q Which of the following assignment statements for variable group are functionally equivalent to the original statement used in the above data step? Below are 2 of the answers give. The correct answer is answer B. I understand why answer B is correct. However can someone please explain why answer A is wrong? My argument is a person can't have 2 age values, therefore answer A should work too. A) if (Age NE 16) or (Age NE 15) then Group=1; else Group=2; B) if Age not in(15,16) then Group=1; else Group=2 Any help regarding this is appreciated. Thank you in advance.
... View more