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?

Answers were Sorted based on User's Feedback



How do you add a number to a macro variable?..

Answer / 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

How do you add a number to a macro variable?..

Answer / ravi

%let=1;

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More SAS Interview Questions

Explain the difference between nodup and nodupkey options?

0 Answers  


how to perform paired t-test using Base/SAS & SAS/Stat?

2 Answers  


What does error:1 mean?

8 Answers   Accenture,


what is the use of proc sql? : Sas programming

0 Answers  


Are you involved in writing the inferential analysis plan? Tables specifications?

0 Answers   Oracle,


% let A=3+4 what is result

4 Answers   Satyam,


how to remove the duplicates by proc sql?

2 Answers   Genpact,


I use NOCUM/NOPERCENT option in the tables statement like this Proc freq data = deepak; tables x y /nocum nopercent; run; Here I get nopercent and nocum in the output only for variables x and y. How do i do it for all variables? Deepak

1 Answers  


how can you improve the performance of a query, If it is excuting very slowly?

2 Answers   Zensar,


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

0 Answers  


What do you feel about hardcoding?

1 Answers  


In proc transpose and data step with arrays which one you pick?

0 Answers   Accenture, Quintiles,


Categories