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

Explain proc sort?

875


how would you create multiple observations from a single observation? : Sas programming

778


for report generation which one you used proc report or data_null_?

7135


how does sas handle missing values in a merge? : Sas programming

779


What makes sas stand out to be the best over other data analytics tools?

807


Describe a time when you were really stuck on a problem and how you solved it?

2424


In sas, what are the areas that you are most interested in? : sas-grid-administration

841


what techniques and/or procs do you use for tables? : Sas programming

798


Name some categories in sas 9? : sas-grid-administration

745


how to generate the test data in sas without input data? : Sas-administrator

824


How does proc sql work?

826


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

834


What do the SAS log messages "numeric values have been converted to character" mean?

1114


What is the role of administrative users? : sas-grid-administration

874


How do you add a number to a macro variable? : sas-macro

751