您正在尝试读取原始数据文件,并且在SAS日志中看到以下消息:
NOTE: Invalid data for Salary in line 4 15-23.
RULE: ----|----10---|----20---|----30---|----40---|----50-
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
这是什么意思?
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.
答案 0 :(得分:1)
看问题:
注意:第4 15-23行中薪水的数据无效。
这是当您从文件或数据行获得输入语句时得到的注释,您期望有一个数字值,但是遇到一个不能读入该字段的非数字值(或其他与该字段不匹配的值)预期的信息)。
D。 INPUT语句规范上的错误,无法读取变量Salary。
根据您解析答案文本的方式,这似乎是对我最好的答案。