我想了解如何读取SAS格式不正确的数据。波纹管是片段,也是我尝试的开始。我也试着做一个if语句,但不知道如何为每一行声明一个格式。例如: if _N_ then [format for this line goes here]; data prob2;
length name $ 8 ;
infile rawdata(Group2.txt) truncover;
input Code Nam
我认为这很容易,但我无法摆脱困境。 我有一组名为变量,然后日期变量和一个值变量: GROUP Date Value
A 1-1-2010 1
A 2-1-2010 2
A 3-1-2010 3
A 4-1-2010 4
B 1-1-2010 5
B 2-1-2010 6
B 3-1-2010 7
B 4-1-2010 8
C 1-1-2010 9
C 2-1-2010 10