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 program data vector (pdv)?

1301


What are the statements that are executed only?

1158


Explain what is SAS informats?

1099


Which are the statements whose placement in the data step is critical?

1268


What are symget and symput? : sas-macro

1316


Describe the function and untility of the most difficult SAS macro that you have written.

2114


how are numeric and character missing values represented internally? : Sas programming

1153


What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?

1163


What are the default statistics for means procedure?

1254


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

1214


Which command is used to save logs in the external file?

1105


What is the maximum length of the macro variable? : sas-macro

1101


Do you need to rearrange the order of the data for the report?

2311


explain what is data set in sas? : Sas-administrator

993


What does PROC print, and PROC contents do?

1242