how to assign a macro value to a variable?
Answers were Sorted based on User's Feedback
Answer / guest
by symget function;
SYNTAX:
variable=SYMGET(macro variable);
| Is This Answer Correct ? | 10 Yes | 4 No |
Answer / ganesh k
if it is a Char then Variable="&MacroVar.";
if it is a Numaric then Variable=%eval(&MacroVar.) or %
sysevalf(&MacroVar.);
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / sr
to assign macro value means it already created then
variable=symget(macro var);
variable will get value of that macro variable
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / radhiv kumar sure
8 TO 9 TYPES WE CAN ASSIGN THE MACRO VALUE TO A VARIABLE.
CALL SYMPUT
%LET
SYMGET
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / manna
data x;
%let a=01jan1960;
b=symget("a");
run;
IT IS Tested
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / cool dude
Creating a Macro.
%Let a='City';
Assigning the macro value of a (which is 'City') to variable.
Data _null_;
b=&a;
put b= ;
run;
| Is This Answer Correct ? | 0 Yes | 6 No |
Answer / srinivas,korasavada
and also we can assign like
%let variable=value;
means the value is save in that variable
| Is This Answer Correct ? | 3 Yes | 10 No |
What is Tabulate.?Why we use it.? Which type of output we get from Tabulate.?
Explain how merging helps to combine data sets.
In sas admin differentiate between roles and capabilities? : sas-grid-administration
How do I CREATE an external dataset with sas code? I would like to create within a sascode a non-exsistent textfile on the host. So I am not forced to create the file befor filling it.
Under what circumstances would you code a SELECT construct instead of IF statements?
Mention some common errors that are usually committed in sas programming.
WHAT DIFFERRENCE DID YOU FIND AMONG VERSION 6 8 AND 9 OF SAS.
At compile time when a SAS data set is read, what items are created?
What is maximum storage capability of SAS?
If you have a data set that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variable?
Describe the ways in which you can create macro variables?
sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately