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 versions of sas have you used (on which platforms)? : Sas programming
What are the ways to do a “table lookup” in sas?
do you need to know if there are any missing values? : Sas programming
How necessary is it to be creative in your work?
What is the maximum length of the macro variable? : sas-macro
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
In sas, what are the areas that you are most interested in? : sas-grid-administration
How do you control the number of observations and/or variables read or written?
Name and describe few sas character functions that are used for data cleaning in brief.
What are SAS/ACCESS and SAS/CONNECT?
Differentiate between ceil and floor functions.
How to convert a numeric variable to a character variable?
What will calendar procedure do?
how can you put a "trace" in your program? : Sas programming
what is the primary data source for the wrs? : Sas-bi