-----------------------------------------------------------------------------------------------------
59.Given the contents of the raw data file TYPECOLOR.DAT:
----+----10---+----20---+----30
daisyyellow
The following SAS program is submitted:
data FLOWERS;
infile 'TYPECOLOR.DAT' truncover;
length
Type $ 5
Color $ 11;
input
Type $
Color $;
run;
-----------------------------------------------------------------------------------------------------------
请教一下,这里运行的结果是color的值缺失。
有些困惑,
我的理解:定义了第一个变量的长度(Type $ 5),那么后边的变量(Color)从第6列开始读,行最后的值比格式短,为阻止sas去下一行读数,设置了truncover选项,因此
Color的值是yellow;我的理解错在哪里?请大佬指点一下 谢谢~~



雷达卡



京公网安备 11010802022788号







