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

Answers were Sorted based on User's Feedback



What is the difference Using & and && in the macro variables..

Answer / 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

What is the difference Using & and && in the macro variables..

Answer / subbu

%let a=sai;
%let b=kumar;


%let c=&a.&b;

%put &c;

Is This Answer Correct ?    4 Yes 4 No

What is the difference Using & and && in the macro variables..

Answer / smriti

& represents that it is a macro variable and && is used to
replace the macro variable with the value of the variable.

Is This Answer Correct ?    7 Yes 8 No

What is the difference Using & and && in the macro variables..

Answer / alla

when concatinating two macro variable
%let a=sai;
%let b=kumar;
%let &a &b;it resolves as sai kumar
if u want to remove the space b/t then use
%let &&a&b; it resolves as saikumar
when you use %let &a&b;resolves as &akumar

Is This Answer Correct ?    2 Yes 6 No

What is the difference Using & and && in the macro variables..

Answer / srk

there is nothing difference b/w & and && for resolving
macros both are same..these are two types of syntax for
resolving macro variable.

Is This Answer Correct ?    1 Yes 12 No

Post New Answer

More SAS Interview Questions

6) Explain about below automatic variables a) _N_ b) _ERROR_ c) _CHAR_ d) _NUMERIC_ e) _ALL_ f) FIRST.BY VARIABLE g) LAST.BY VARIABLE h) _NAME_ i) _TYPE_ j) _FREQ_ k) _STAT_ l) _BREAK

1 Answers   IBM, SAS,


Explain the difference between using drop = data set option in set and data statement?

0 Answers  


Is it possible to do sorting tranformation in charecter variable??if can tell me one eg..

1 Answers  


what are some good sas programming practices for processing very large data sets? : Sas programming

0 Answers  


what is the difference between proc report and proc format?

7 Answers   CTS,


how could you generate test data with no input data? : Sas programming

0 Answers  


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

0 Answers  


To what type of programms have you used scratch macros?

0 Answers   Novartis,


What are Dashboard reports?And significance of these in analysis?

1 Answers  


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

0 Answers  


: and & modifiers.

0 Answers   Oracle,


Under what circumstances would you code a SELECT construct instead of IF statements?

7 Answers   Accenture,


Categories