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


Please Help Members By Posting Answers For Below Questions

what do the mod and int function do? What do the pad and dim functions do? : Sas programming

910


How would you identify a macro variable?

871


What are the applications primarily used by business analyst? : Sas-bi

794


What function CATX syntax does?

927


how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming

852


What is the maximum and minimum length of macro variable

942


What is the use of divide function?

818


Mention what is PROC in SAS?

842


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

5213


Explain by-group processing?

806


What is the difference between class statement and by statement in proc means?

919


To what type of programms have you used scratch macros?

2373


what is proc Index? and what is proc document?

2264


What does proc print, and proc contents are used for?

837


how does sas handle missing values in functions? : Sas programming

868