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

Use %eval to do simple calculation for macro variables.
e.g.,
data _null_;
%let a = 1;
%let b = %eval(&a+1);
%put a=&a b=&b;
run;

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is sas business intelligence? : Sas-bi

1091


Explain the main difference between the sas procedures and functions? : Sas-administrator

1012


How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?

1622


For what purposes have you used sas macros? : sas-macro

952


How to specify variables to be processed by the freq procedure?

1025


How we can create SAS USER DEFINED CODE?

2029


What is SAS? What are the functions does it performs?

1138


what versions of sas have you used (on which platforms)? : Sas programming

1003


Explain the purpose of retain statement.

1005


How would you identify a macro variable?

1030


what is operational data and operational system? : Sas-di

1055


what is sas enterprise intelligence architecture? : Sas-bi

934


What sas features do you use to check errors and data validation?

1160


What is the maximum and minimum length of macro variable

1165


What are the applications primarily used by business analyst? : Sas-bi

941