Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 versions of sas have you used (on which platforms)? : Sas programming

1028


What are the ways to do a “table lookup” in sas?

996


do you need to know if there are any missing values? : Sas programming

1012


How necessary is it to be creative in your work?

2445


What is the maximum length of the macro variable? : sas-macro

1068


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.

2173


In sas, what are the areas that you are most interested in? : sas-grid-administration

1041


How do you control the number of observations and/or variables read or written?

1213


Name and describe few sas character functions that are used for data cleaning in brief.

1088


What are SAS/ACCESS and SAS/CONNECT?

1107


Differentiate between ceil and floor functions.

1124


How to convert a numeric variable to a character variable?

1158


What will calendar procedure do?

1038


how can you put a "trace" in your program? : Sas programming

1024


what is the primary data source for the wrs? : Sas-bi

1173