By admin | August 5, 2009

SAS Certified Base Programmer 50 Questions (14)

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

a.

data work.airports;
AirportCode='ord';
if AirportCode='ORD' City='Chicago';
run;

b.

data work.airports;
AirportCode='ORD';
if AirportCode='ORD' City='Chicago';
run;

c.

data work.airports;
AirportCode='ORD';
if AirportCode='ORD' then City='Chicago';
run;

d.

data work.airports;
AirportCode='ORD';
if AirportCode='ORD';
then City='Chicago';
run;

One comment | Add One

  1. SAS Tutor - 08/5/2009 at 3:14 pm

    C

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *