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 study design in while working with SAS? what are screening variables in SAS?

2232


what other sas products have you used and consider yourself proficient in using? : Sas programming

1105


State the difference between INFORMAT and FORMAT ?

1093


What is the difference between %put and symbolgen? : sas-macro

1231


What is interleaving in SAS?

1102


how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5

2101


How to create an external dataset with sas code?

1146


How can I remove header from output data set?

2614


I am preparing SAS Certified Advanced Programmer for SAS 9 in 2014. If anybody has the latest dumps for this exam, please mail me at dhiman.mukherjee@gmail.com

2710


What is the basic structure of a sas program?

1110


how to generate the test data in sas without input data? : Sas-administrator

1122


what is factor analysis? : Sas-administrator

1085


what is the one statement to set the criteria of data that can be coded in any step? : Sas programming

1141


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

1085


What are the limitations for memory allocation for SAS variables

1479