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 is data governance? : Sas-di

970


Mention the category in which sas informats are placed?

976


how does sas handle missing values in procs? : Sas programming

1156


Explain how you can debug and test your SAS program?

943


What are the new features included in the new version of SAS Programming Language?

1150


Of all your work, where have you been the most successful?

4621


how does sas handle missing values in formats? : Sas programming

1077


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

984


What is interleaving in SAS?

1063


describe about metadata object? : Sas-di

1008


What is maximum storage capability of SAS?

1352


is data integration and etl programming is same? : Sas-di

1008


Which function is used to count the number of intervals between two sas dates?

1066


what is the use of sas management console? : Sas-di

1033


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

988