If you need the value of a variable rather than the
variable itself what would you use to load the value to a
macro variable?
Answers were Sorted based on User's Feedback
Answer / yuyin
a=123;
call symput("x",a);
a is a variable, 123 is the value of variable a, x is macro
variable, symput will assign 123 to macro variable x.
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / saurabh gupta
If we need a value of a macro variable then we must define
it in such terms so that we can call them everywhere in the
program.
Define it as Global. There are different ways of assigning
a global variable.
Simplest method is
%LET
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / yuyin
a is macro variable. use following statment to assign the
value of a rather than the variable itself
e.g.
%let a=xyz
x="&a";
this will assign "xyz" to x, not the variable xyz to x
| Is This Answer Correct ? | 0 Yes | 3 No |
You have a data set of 100 observations,how can you restrict the output so that the output has only data from row no. 10 to row no. 20
what is sas enterprise intelligence architecture? : Sas-bi
What is the difference between match merge and one to one merge?
i have a dataset with var1,var2,var3; i want to upload the titles for the variables . How can we?
What is the role of administrative users? : sas-grid-administration
Of all your work, where have you been the most successful?
how do you pull data from equifax?tell me the process?
0 Answers Synchrony Financial,
Differentiate input and infile.
What are the differences between proc means and proc summary?
How would you define the end of a macro?
What areas of SAS are you most interested in?
What do you code to create a macro? : sas-macro