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?
Answer Posted / chaitanya
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.
Ex: A, is macro variable. Use following statement to assign
the value of a rather than the variable itselfe.g.
%Let A=xyz x="&A";
This will assign "xyz" to x, not the variable xyz to x.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to specify variables to be processed by the freq procedure?
How to test the debugging in sas?
How does proc sql work?
What are the different types of sas functions?
Explain what Proc glm does?
How many data types are there in SAS?
How would you identify a macro variable?
What is the difference between order and group variable in proc report?
What are the table names in oracle database...?
how do the in= variables improve the capability of a merge? : Sas programming
What are the ways to do a “table lookup” in sas?
What is substr function?
What are the data types that sas contain?
How would you invoke a macro? : sas-macro
what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming