What is the difference Using & and && in the macro variables
Answer Posted / 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 |
Post New Answer View All Answers
Give an example where SAS fails to convert character value to numeric value automatically?
What commands are used in the case of including or excluding any specific variables in the data set?
How to create list output for cross-tabulations in proc freq?
Give e an example of..
what is study design in while working with SAS? what are screening variables in SAS?
describe how to adjust the performance of data integrator? : Sas-di
how can you import .csv file in to sas? : Sas programming
What is interleaving in SAS?
what is slowly changing dimension? : Sas-di
How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro
what is the Population you used in your project, is it ITT or PP?
If a variable contains letters or special characters, can it be numeric data type?
How to create an external dataset with sas code?
what is the difference between infile and input? : Sas-administrator
What are the different types of sas functions?