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

In ARRAY processing, what does the DIM function do?

908


what is transformation in sas data integration? : Sas-di

758


How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

1309


What does the trace option do?

868


What do you know about sas data set?

803


How do you define proc in sas? : sas-grid-administration

855


What is the difference between %put and symbolgen? : sas-macro

915


For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration

731


For clinical entire study how many tables will create approx?

1713


What is PROC in SAS?

807


Intern stastical programmer written test

497


What Proc glm does?

837


what is the purpose of _error_? : Sas programming

842


List down the reasons for choosing sas over other data analytics tools.

1039


What are the functions used for character handling?

872