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 would you change about your job?
AE datasets names? how many types?
how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?
what is the effect of the options statement errors=1? : Sas programming
how does sas handle missing values in sort order? : Sas programming
Explain why double trailing @@ is used in input statement?
What are the functions which are used for character handling functions?
What Proc glm does?
Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.
How would you invoke a macro? : sas-macro
Explain the purpose of retain statement.
how does sas handle missing values in a merge? : Sas programming
How necessary is it to be creative in your work?
What can you learn from the SAS log when debugging?
what is the difference between floor and ceil functions in sas? : Sas-administrator