DATALINES;
F 115 M 21 M 82 F 45 F 48
M 67 F 23 M 12 F 69 F 89
;
RUN;
显示结果
Obs gender money
1 F 115
2 M 21
3 M 82
4 F 45
5 F 48
6 .
7 6 7
8 F 23
9 M 12
10 F 69作者: shiyiming 时间: 2004-4-22 04:27
using list input
DATA information;
INPUT gender $ money @@;
DATALINES;
F 115 M 21 M 82 F 45 F 48
M 67 F 23 M 12 F 69 F 89
;
RUN;
proc print data =information;
run;作者: shiyiming 时间: 2004-4-22 07:32 标题: 多谢 但我想知道现在这种方法为什么不对作者: shiyiming 时间: 2004-4-22 14:51
$1. is an informat, so you are using formatted input. But, as formatted input, your INPUT statement did not follow SAS rules. Please double check the documentation for FORMATTED INPUT.