Question 58 Which one of the following SAS programs creates a variable named City with a value of Chicago?

  1. data work.airports;

 AirportCode='ord';

 if AirportCode='ORD' City='Chicago';

 run;

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

 Ans : 3

 Exp : The correct syntax for an IF-THEN statement is: IF expression THEN statement;

 In this example, the variable City is assigned a value of Chicago only if the expression AirportCode='ORD' is true.

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