How can you assign a value from a datastep to a macro variable?
-
Using Symget function
-
Using Symput function
-
Using Assign function
-
Using Sysfunc function
B
Correct answer
Explanation
The SYMPUT function (and its counterpart CALL SYMPUT) is used to assign a value from a DATA step to a macro variable. SYMGET retrieves macro variable values in a DATA step. SYSFUNC executes SAS functions within macro code. There is no ASSIGN function in SAS.