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


Please Help Members By Posting Answers For Below Questions

What is the maximum length of the macro variable?

663


What are the data types does SAS contain?

644


What are pdv and it functions?

592


What is the command used to find missing values?

583


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

737






Give some examples where proc report’s defaults are same as proc print’s defaults?

631


I have a dataset concat having variable a b & c. How to rename a b to e & f?

569


How to create a permanent sas data set?

667


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??

2084


Describe the ways in which you can create macro variables? : sas-macro

571


how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming

590


Explain the special input delimiters used in sas programming.

574


What is the use of divide function?

589


What is the difference between reading data from an external file and reading data from an existing data set?

628


Tell e how how dealt with..

1761