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 |
how to delete the duplicates by using proc sql?
what are the considerations when picking a SAS/STAT procedure?
0 Answers Accenture, Quintiles,
What are the different types of sas functions?
what is intially documentation for a sas programmer?
describe about physical data integration? : Sas-di
I am having a stored process.it needs to route my report to both hthml and Xls.By default SP routes to html.I used the PRINTTO to route the html to Xls.BUt it createsthe file not but no content was written to file(0KB)?how can i do it?
What is PDV?
What is the basic syntax style in SAS?
where will go the observations that were deleted by delete statement?
why is sas data integration studio important? : Sas-di
How would you determine how far down on a page you have printed in order to print out footnotes?
How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro