What is the difference Using & and && in the macro variables
Answers were Sorted based on User's Feedback
Answer / naga
& is used to resolve the direct macro reference.
&& is used to resolve the indirect macro reference.
for example let us assume we need to resolve city1 to banglore
%let &city&n /*incorrect*/
%let &&city&n /*correct*/
Is This Answer Correct ? | 20 Yes | 1 No |
Answer / smriti
& represents that it is a macro variable and && is used to
replace the macro variable with the value of the variable.
Is This Answer Correct ? | 7 Yes | 8 No |
Answer / alla
when concatinating two macro variable
%let a=sai;
%let b=kumar;
%let &a &b;it resolves as sai kumar
if u want to remove the space b/t then use
%let &&a&b; it resolves as saikumar
when you use %let &a&b;resolves as &akumar
Is This Answer Correct ? | 2 Yes | 6 No |
Answer / srk
there is nothing difference b/w & and && for resolving
macros both are same..these are two types of syntax for
resolving macro variable.
Is This Answer Correct ? | 1 Yes | 12 No |
The Lion King is hosting an animal conference. All the animals in the world attend except one. Which animal does not attend?
What are the joins,types of joins and thier functions?
What are the differences between proc means and proc summary?
what is Global Symbol table and Local symbol table?
why a stop statement is needed for the point= option on a set statement?
Mention what is the difference between nodupkey and nodup options?
For what purposes have you used sas macros? : sas-macro
If money were no object, what would you like to do?
What is program data vector (pdv)?
what is the one statement to set the criteria of data that can be coded in any step? : Sas programming
I am looking to buy a sas advance book. So any one can guide me that which one i should buy.
Explain the difference between using drop = data set option in set and data statement?