l***i 发帖数: 8 | 1 The contests of the raw data file Product are listed below;
----|----10--
2461 $25.31
The following sas program is submitted:
data inventory;
infile 'product';
input idnum 5. @10 price;
run;
Which one of the following is the value of the price variable?
A. 25.31
B. $25.31
C. .(missing numeric vales)
D. No value is stored as the program fails to excute due to errors.
The Answer:C
我不太明白为什么是C这个答案,price是从第十个位置开始读的,那么读出来的结果应
该是.31。但是答案中没有这个答案。 | L****n 发帖数: 3545 | 2 If I remember correctly, the position input (@n) can only read in standard
numeric values .... yours is dollar6.2 informat ......
【在 l***i 的大作中提到】 : The contests of the raw data file Product are listed below; : ----|----10-- : 2461 $25.31 : The following sas program is submitted: : data inventory; : infile 'product'; : input idnum 5. @10 price; : run; : Which one of the following is the value of the price variable? : A. 25.31
| l***i 发帖数: 8 | 3 Thanks!
I know what I did wrong now. | w*******t 发帖数: 364 | |
|