Multiple choice technology programming languages

How can you assign a value from a datastep to a macro variable?

  1. Using Symget function

  2. Using Symput function

  3. Using Assign function

  4. Using Sysfunc function

Reveal answer Fill a bubble to check yourself
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.