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

In sas, what are the areas that you are most interested in? : sas-grid-administration

1129


what is function of retain statment

2079


If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro

1118


Describe crosslist option in tables statement?

1263


what can you learn from the sas log when debugging? : Sas programming

1136


how do the in= variables improve the capability of a merge? : Sas programming

1478


what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi

1060


What is the difference between input and infile statement?

1224


What are the difference between the sas data step and sas procs?

1248


what is change analysis in sas di ? : Sas-di

1109


Mention what are the data types does SAS contain?

1190


what is the primary data source for the wrs? : Sas-bi

1332


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

1189


What is the work of tranwrd function?

1295


what are input dataset and output dataset options? : Sas programming

1164