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 is used to assign a DATA step value to a macro variable (CALL SYMPUT or %SYMPUT). SYMGET does the reverse (retrieves macro variable value). There is no ASSIGN function in SAS. SYSFUNC is used within macro to execute SAS functions.