y***t 发帖数: 644 | 1 What happens when the fourth iteration of the DATA step is complete?
data perm.orders (drop=type);
sas base 220 P127
5.
表见附件
infile produce;
retain Fruit;
input type $1. @;
if type='F' then input @3 fruit $7.;
if type='V';
input @3 Variety : $16. @20 Price comma5.;
run;
a. All of the values in the program data vector are written to the data set
as the third
observation.
b. All of the values in the program data vector are written to the data set
as the fourth
observation.
c. The values for Fruit, | y***t 发帖数: 644 | | A*******s 发帖数: 3942 | 3 my 2 cents:
"if type='V';" deletes the first observation, so the fourth row of the raw
data is the third observation in the created dataset.
【在 y***t 的大作中提到】 : 答案为c, 不明白觉得是D.
| y***t 发帖数: 644 | 4 Thanks! Actuaries
It makes sense. |
|