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

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

1089


Which command is used to perform sorting in sas program?

1043


Describe the ways in which you can create a macro variable?

1078


What is the difference between one to one merge and match merge? Give an example.

1059


it will become easy if uuu provide website linkssss and list of consultanciessssss

1969


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

997


Hi Friends, Am Priya,new to your forum. am looking for Interview questions on SAS Platform Administration. I searched everywhere but I couldn't find them,please can anyone help me with complete interview questions normally everyone will face in the interviews on SAS Administration. am really facing problems in the interviews,am not able to answer any of their questions. I would really appreciate all your help if you can email the complete Interview Questions to priyafeb84@gmail.com Kindly awaiting for your reply with eager

2070


what type of graphs we will create(for 2+years candidates)?

2300


What does P-value signify about the statistical data?

1353


Have you ever used the SAS Debugger?

1750


What are the best sas programming practices for handling very large datasets? : sas-grid-administration

1007


if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming

1062


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

1067


What is the length assigned to the target variable by the scan function?

1143


Give some ways by which you can define the variables to produce the summary report (using proc report)?

1083