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
Explain proc sort?
how would you create multiple observations from a single observation? : Sas programming
for report generation which one you used proc report or data_null_?
how does sas handle missing values in a merge? : Sas programming
What makes sas stand out to be the best over other data analytics tools?
Describe a time when you were really stuck on a problem and how you solved it?
In sas, what are the areas that you are most interested in? : sas-grid-administration
what techniques and/or procs do you use for tables? : Sas programming
Name some categories in sas 9? : sas-grid-administration
how to generate the test data in sas without input data? : Sas-administrator
How does proc sql work?
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? : sas-macro
What do the SAS log messages "numeric values have been converted to character" mean?
What is the role of administrative users? : sas-grid-administration
How do you add a number to a macro variable? : sas-macro