p***7 发帖数: 535 | 1 ----5----10---
daisyyellow
data flowers;
infile 'typecolor.dat' truncover;
length type $ 5 color $ 11;
input type $ color$;
run;
what are the value of variable type and color?
answer type=daisy color=
what I don't understand is the value of color. How does truncover work?
I look up some definition in sas documentation as followed.
Missover can replace truncover here? which will has the same result?
MISSOVER
causes the DATA step to assign missing values to any variables that do not
have values when the end of a data record is encountered. The DATA step
continues processing.
TRUNCOVER
causes the DATA step to assign values to variables, even if the values are
shorter than expected by the INPUT statement, and to assign missing values
to any variables that do not have values when the end of a record is
encountered.
Thanks so much in advance. | o*******w 发帖数: 2310 | 2 这个就是简单的LIST INPUT,与那两个定义没大关系。
就是考察的LIST INPUT 的空格问题。 | p***7 发帖数: 535 | 3 Thanks so much for your patience just like what is on your icon. |
|