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 techniques and/or procs do you use for tables? : Sas programming

1066


Differentiate between ceil and floor functions.

1162


Describe what are the different levels of administrative users in sas? : sas-grid-administration

1038


What do the put and input function do?

1062


what is the purpose of _error_? : Sas programming

1136


What is program data vector (pdv) and what are its functions?

1247


hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?

2071


Can you explain the process of calendar?

1116


how would you determine the number of missing or nonmissing values in computations? : Sas programming

1150


Explain input and put function?

1143


Describe the ways in which you can create macro variables?

1194


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

1237


how could you generate test data with no input data? : Sas programming

1188


How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?

2460


What are the statements in proc sql?

1105