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
what are all the reports you generated in your recent project?
for report generation which one you used proc report or data_null_?
Tell e how how dealt with..
Name any two sas spawners? : sas-grid-administration
Tell e how how dealt with..
Which command is used to perform sorting in sas program?
What is SAS? What are the functions does it performs?
I have a dataset concat having variable a b & c. How to rename a b to e & f?
What does P-value signify about the statistical data?
Differentiate between proc means and proc summary.
if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...
Differentiate between format and informat? : sas-grid-administration
Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??
what is factor analysis? : Sas-administrator
Name validation tools used in SAS