Question 61 The following SAS program is submitted:

 data fltaten;

 input jobcode $ salary name $;

 cards;

 FLAT1 70000 Bob

 FLAT2 60000 Joe

 FLAT3 30000 Ann

 ;

 run;

 data desc;

 set fltaten;

 if salary>60000 then description='Over 60';

 else description='Under 60';

 run;

 What is value of the variable named description when the value for salary is 30000?

 

  1. Under 6
  2. Get all Questions and Answer from here
  3. You need to have paid subscription to access all questions
  4. Thanks for considering SAS Certification Material

 Ans :1

 Exp : The variable description is being created by the IF-THEN/ELSE statement during compilation. The first occurrence of the variable description is on the IF statement, and since

 it is assigned the value Over 60, the length of the variable is 7.

You can access to full explanation to question and answer from this page.