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

how will you location sas platform applications available from web browser? : Sas-bi

0 Answers  


How can you limit the variables written to output dataset in data step?

0 Answers  


In which case u go for libname and in which case u go for proc sql pass thru facilit diff?

1 Answers  


How to read the file names of a text files from a shared drive using SAS?

1 Answers   HSBC, WNS,


Explain substr function?

0 Answers  


Explain what Proc glm does?

0 Answers  


How we will Developing new reports Using Data step programming and Macros ?

4 Answers  


which features do you use to check the data validations and errors? : Sas-administrator

0 Answers  


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

0 Answers  


Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?

0 Answers  


what is the use of proc contents and proc print in sas? : Sas-administrator

0 Answers  


At compile time when a SAS data set is read, what items are created?

14 Answers   Accenture,


Categories