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 |
how will you location sas platform applications available from web browser? : Sas-bi
How can you limit the variables written to output dataset in data step?
In which case u go for libname and in which case u go for proc sql pass thru facilit diff?
How to read the file names of a text files from a shared drive using SAS?
Explain substr function?
Explain what Proc glm does?
How we will Developing new reports Using Data step programming and Macros ?
which features do you use to check the data validations and errors? : Sas-administrator
how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
what is the use of proc contents and proc print in sas? : Sas-administrator
At compile time when a SAS data set is read, what items are created?