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 do the mod and int function do? What do the pad and dim functions do? : Sas programming
How would you identify a macro variable?
What are the applications primarily used by business analyst? : Sas-bi
What function CATX syntax does?
how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming
What is the maximum and minimum length of macro variable
What is the use of divide function?
Mention what is PROC in SAS?
hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana
Explain by-group processing?
What is the difference between class statement and by statement in proc means?
To what type of programms have you used scratch macros?
what is proc Index? and what is proc document?
What does proc print, and proc contents are used for?
how does sas handle missing values in functions? : Sas programming