A.It cannot be used in an if/then condition.
B.It cannot be used in an assignment statement.
C.It can be put into a keep statement or keep= option.
D.It is automatically dropped.
(选D??)
2.The following SAS program is sumbitted:
data WORK.INFO;
infile 'DATAFILE.TXT';
input @1 Company $20. @25 State $2. @;
if State=' ' then input @30 Year;
else input @30 City Year;
input NumEmployees;
run;
How many raw data records are read during each iteration of the DATA step?
A.1 B.2 C.3 D.4
3.You're attempting to read a raw data file and you see the following messages displayed in the SAS Log:
NOTE: Invalid data for Salary in line 4 15-23.
RULE:
----+----1----+----2----+----3----+----4----+----5--
4 120104 F 46#30 11MAY1954 33
Employee_Id=120104 employee_gender=F Salary=. birth_date=-2061 _ERROR_=1 _N_=4
NOTE: 20 records were read from the infile 'c:\employees.dat'.
The minimum record length was 33.
The maximum record length was 33.
NOTE: The data set WORK.EMPLOYEES has 20 observations and 4 variables.
What does it mean?
A.A compiler error, triggered by an invalid character for the variable Salary.
B.An execution error, triggered by an invalid character for the variable Salary.
C.The 1st of potentially many errors, this one occurring on the 4th observation.
D.An error on the INPUT statement specification for reading the variable Salary.
(我觉得是B)
4.Consider the following data step:
data WORK.NEW;
set WORK.OLD;
Count+1;
run;
The variable Count is created using a sum statement. Whichstatement regarding this variable is true?
A.It is assigned a value 0 when the data step begins execution.
B.It is assigned a value of missing when the data step begins execution.
C.It is assigned a value 0 at compile time.
D.It is assigned a value of missing at compile time.
(我选A)
5.A user-defined format has been created using the FORMAT procedure.
How is it stored?
A.in a SAS catalog
B.in a memory resident lookup table
C.in a SAS dataset in the WORK library
D.in a SAS dataset in a permanent SAS data library