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?
Answers were Sorted based on User's Feedback
Answer / yuyin
a=123;
call symput("x",a);
a is a variable, 123 is the value of variable a, x is macro
variable, symput will assign 123 to macro variable x.
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / saurabh gupta
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
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / yuyin
a is macro variable. use following statment to assign the
value of a rather than the variable itself
e.g.
%let a=xyz
x="&a";
this will assign "xyz" to x, not the variable xyz to x
| Is This Answer Correct ? | 0 Yes | 3 No |
Which function is used to count the number of intervals between two sas dates?
data jagan1.s; input bp$; cards; 100/90 120/89 112/87 run; in the above code how to convert character data values to numeric data values?
Are you involved in writing the inferential analysis plan? Tables specifications?
What can you learn from the SAS log when debugging?
What is a macro routine?
what is the function of catx syntax? : Sas-administrator
Mention what is SAS data set?
What are the table names in oracle database...?
I have 50 variables in one data set, In reports i want to generate every 10 variables in one page how we will write code in proc report.
What is the command used to find missing values?
What do you understand by the term Normal Distribution?
What is the Program Data Vector (PDV)? What are its functions?