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 the use of % includes a statement in sas? : Sas-administrator
what are several options for creating reports in web report studio? : Sas-bi
Which date function advances a date, time or datetime value by a given interval?
What do you code to create a macro? : sas-macro
What is program data vector (pdv)?
What is the length assigned to the target variable by the scan function?
how to read the variables in sas? : Sas-administrator
how would you determine the number of missing or nonmissing values in computations? : Sas programming
Have you ever used the SAS Debugger?
How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?
Where do you use proc means over proc freq?
which features do you use to check the data validations and errors? : Sas-administrator
What would be the value of month at the end of data step execution and how many observations would be there?
How many data types are there in SAS?
What are the different versions of sas that you have used until now? : sas-grid-administration