Question : 3

 A frequency report of the variable Jobcode in the Work.Actors data set is listed below.

 The following SAS program is submitted:

 data work.joblevels;   

 set work.actors;

 if jobcode in ('Actor I', 'Actor II')

 then       

 joblevel='Beginner';

 ifjobcode='Actor III'

 then        joblevel='Advanced';

 else joblevel='Unknown';

 run;

 Which of the following represents the possible values for the variable joblevel in the Work.Joblevels data set?

 

  1. Advanced and Unknown only
  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

 Correct Answer : 1

 Exp : The DATA step will continue to process those observations that satisfy the condition in the first IF statement Although Joblevel might be set to Beginner for one or more

 observations, the condition on the second IF statement will evaluate as false, and the ELSE statement will execute and overwrite the value of Joblevel as Unknown.

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