f*****a 发帖数: 693 | 1 Given data one,
Division sales
A 1234
A 3654
B 5678
The following SAS program is submitted:
data _null_;
set one;
by division;
if first.division then
call symput('mfirst',sales);
if last.division then
call symput('mlast',sales);
run;
which one of the following is the value of the macro variable mfirst when
the above program finish execution?
A. null B. 1234 C. 3654 D. 5678
Answer: D
Why not B. thanks. | p********a 发帖数: 5352 | 2 first.division=1 for record division=B and Sales=5678
The macro value was replaced |
|