Question 58 Which one of the following SAS programs creates a variable named City with a value of Chicago?
- data work.airports;
AirportCode='ord';
if AirportCode='ORD' City='Chicago';
run;
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- 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.