c******j 发帖数: 270 | 1 The default length of numerical and character variables are both 8.
When input variables from a file,without specific formatting, char data will
be truncated to length 8. But numerical data will be taken in as long as it
is?
example
data test;
input animal $ mlgrams ;
cards;
hummingbird 90800000.87
;
run;
hummingbird is read in as hummingb but 90800000.87 is read in as 90800000.87? | x**7 发帖数: 341 | 2 yes
will
it
【在 c******j 的大作中提到】 : The default length of numerical and character variables are both 8. : When input variables from a file,without specific formatting, char data will : be truncated to length 8. But numerical data will be taken in as long as it : is? : example : data test; : input animal $ mlgrams ; : cards; : hummingbird 90800000.87 : ;
|
|