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 |
How would you delete observations with duplicate keys?
Describe the function and untility of the most difficult SAS macro that you have written.
Differentiate input and infile.
hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana
Difference between nodup and nodupkey options?
How the Excel file enter into the SAS environment without Code of Infile & Import procs,if i have no file Conversion?
What is difference between rename and lable in sas?
I need level 2 to 5 sas using companies in india
how many types prompting framework can be broken down to? : Sas-bi
how to display duplicated observations in a data using base sas.
13 Answers HCL, TCS,
what is option year cuttoff in sas
sas macros