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

i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;

2557


What does P-value signify about the statistical data?

1402


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

1180


how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?

2809


What are pdv and it functions?

1246


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?

1732


where to use sas business intelligence? : Sas-bi

1164


Describe the ways in which you can create macro variables? : sas-macro

1117


What are the special input delimiters used in SAS?

1241


Describe a time when you were really stuck on a problem and how you solved it?

2682


How would you define the end of a macro? : sas-macro

1137


Name and describe few sas character functions that are used for data cleaning in brief.

1184


Mention how to limit decimal places for the variable using proc means?

1174


what is the Population you used in your project, is it ITT or PP?

2806


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

1134