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
explain what is data set in sas? : Sas-administrator
What do the mod and int function do? : Sas programming
what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming
What are the ways in which macro variables can be created in sas programming?
Approximately what date is represented by the SAS date value of 730?
Given an unsorted data set, how to read the last observation to a new data set?
what can you learn from the sas log when debugging? : Sas programming
How you can read the variables that you need?
What are types of transport files?
I have a dataset concat having variable a b & c. How to rename a b to e & f?
How can I remove header from output data set?
What is the use of function Proc summary?
what is business intelligence? : Sas-bi
how does sas handle missing values in assignment statements? : Sas programming
What are the statements that are executed only?