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...

How do you add a number to a macro variable?

Answer Posted / saurabh gupta

To add a number in macro use %EVAL macro

Example

%Let a= 2;
%Let b= 3;
%Let c= &a + &b ;
then it will give you value

c=2 + 3

but If you will use %eval it will give you sum

%Let c= %eval(&a + &b)
Now this will give you the correct answer

c=5

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 3 components in sas programming?

1238


What would you change about your job?

2442


For clinical entire study how many tables will create approx?

2020


If money were no object, what would you like to do?

3235


how many types of prompts are there? : Sas-bi

1125


Mention what are the data types does SAS contain?

1194


what is the difference between infile and input? : Sas-administrator

1201


What are the data types in sas?

1112


Describe the function and utility of the most difficult SAS macro that you have written?

2627


What are the different servers in sas? : sas-grid-administration

1102


how to read the variables in sas? : Sas-administrator

1071


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

1073


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

1112


Difference between informat and format?

1143


What are the differences between sum function and using “+” operator?

1158