SAS Certified Adv Programmer 130 Questions (22)
Given the following SAS data set ONE:
ONE GROUP SUM A 765 B 123 C 564
The following SAS program is submitted:
data _null_; set one; call symput(group,sum); run;
Which one of the following is the result when the program finishes execution?
A. Macro variable C has a value of 564.
B. Macro variable C has a value of 1452.
C. Macro variable GROUP has a value of 564.
D. Macro variable GROUP has a value of 1452.
Topics:
SAS Adv Questions |
7 Comments »
A
Where does the Macro variable C come from?
it should be C
it should be C
call symput is macro variable name used value of variable GROUP
C is the correct answer
It’s one of the values for ‘GROUP’ variable. Total 3 macros are created. &A, &B and &C by call symput function and the respective values assigned to them are 765, 123 and 564.