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. @25age 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 Values for the variable age are missing in the output because the informat for age is coded incorrectly. Since age is standard numeric input, it should use the w.d informat to specify a field width of 3 in the INPUT statement. You can learn about the w.d informat in Reading Raw Data in Fixed Fields I think maybe the answer and the explanation are not right?Since the point is at 24?and the age is integer,it is supposed to read one number for each?and no need to set its format into w.d ----------------------------------------------------------------------updade------------------------------------------------------------------------ this is the origin question on pdf file,mine paste seemd disorder the format.
... View more