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
What is the maximum length of the macro variable?
What are the data types does SAS contain?
What are pdv and it functions?
What is the command used to find missing values?
How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?
Give some examples where proc report’s defaults are same as proc print’s defaults?
I have a dataset concat having variable a b & c. How to rename a b to e & f?
How to create a permanent sas data set?
Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??
Describe the ways in which you can create macro variables? : sas-macro
how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming
Explain the special input delimiters used in sas programming.
What is the use of divide function?
What is the difference between reading data from an external file and reading data from an existing data set?
Tell e how how dealt with..