By admin | August 16, 2009

SAS Certified Adv Programmer 50 Questions (26)

The following SAS program is submitted:

%let mvar=bye;
data _null_;
    var1='hi';
    var2='hello';
    call symput('var1' || "&mvar", var2);
run;

Which one of the following is the name of the macro variable created by the CALL SYMPUT statement?

a. var1
b. hibye
c. var1bye
d. No macro variable is created because the CALL SYMPUT statement is not valid.

2 comments | Add One

  1. admin - 08/16/2009 at 11:02 am

    C

  2. Consty - 02/13/2013 at 3:15 pm

    C:
    %put _user_;
    GLOBAL MVAR bye
    GLOBAL VAR1BYE hello

Leave a Comment

Leave a Reply

Your email address will not be published.