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

Using %eval function

Is This Answer Correct ?    4 Yes 0 No

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

Answer / ganesh

If it is an integer we can use %eval ..
If it has decimal values then %sysevalf..

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More SAS Interview Questions

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

0 Answers  


WHAT DIFFERRENCE DID YOU FIND AMONG VERSION 6 8 AND 9 OF SAS.

4 Answers   Genzyme,


Write a SAS macro to calculate number of numbers in an email address

2 Answers  


Difference between nodup and nodupkey options?

0 Answers  


Where do you use proc means over proc freq?

0 Answers  






if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation

0 Answers   CTS,


hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana

0 Answers   SAS,


how does sas handle missing values in a merge? : Sas programming

0 Answers  


Name few SAS functions?

0 Answers  


what is SAS/Graph?

1 Answers   CitiGroup, NTPC,


what is intially documentation in sas?

1 Answers   Accenture,


There is a field containing a date. It needs to be displayed in the format “ddmonyy” if it’s before 1975,”dd mon ccyy” if it’s after 1985, and as ‘disco years’ if its between 1975 and 1985. How would you accomplish this in data step code? Using only PROC FORMAT.

3 Answers   CTS,


Categories