1.A raw data file is listed below.
1---+----10---+----20---+---
son Frank 01/31/89
daughter June 12-25-87
brother Samuel 01/17/51
The following program is submitted using this file as input:data work.family;
infile 'file-specification';
<insert INPUT statement here>run;
Which INPUT statement correctly reads the values for the variable Birthdate as SASdate values?
a.input relation $ first_name $ birthdate date9.;
b.input relation $ first_name $ birthdate mmddyy8.;
c.input relation $ first_name $ birthdate : date9.;
d.input relation $ first_name $ birthdate : mmddyy8.;
Correct answer: d
41.A raw data file is listed below.
1---+----10---+----20---+---
01/05/1989 Frank 11
12/25/1987 June 13
01/05/1991 Sally 9
The following SAS program is submitted using the raw data file as input:data work.family;
infile 'file-specification';
input @1 date_of_birth mmddyy10.
@15 first_name $5.
@25 age 3;run;
proc print data=work.family noobs;
run;
Which one of the following is the result?
a. The program executes, but the age values are missing in the output.
b. The program executes, but the date values are missing in the output.
c. The program fails to execute because the age informat is coded incorrectly.
d. The program fails to execute because the date informat is coded incorrectly.
Correct answer: a
这个是第一题和第41题,为什么一样的东西第一个不加冒号就错,41题里面不加就对了啊?