I have a dataset with variables empid and doj how to calculate retirement age?



I have a dataset with variables empid and doj how to calculate retirement age?..

Answer / virat chary vadla

data joindates;
input empid$ doj date9.;
format doj is8601da.;
cards;
a101 01jan2000
a102 01aug2000
;

/*if retirement time is for 60 yrs then */


data ret_dates;
set joindates;
ret=intnx('year',doj,60,'same');
format ret doj is8601da.;
put 'for the empid--' empid 'retirement date is--' ret;
run;

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More SAS Interview Questions

what is the diff b/w verification validation in sas

3 Answers   SAS,


Describe crosslist option in tables statement?

0 Answers  


How do you read in the variables that you need?

9 Answers   Accenture,


What are the ways to do a “table lookup” in sas?

0 Answers  


At compile time when a SAS data set is read, what items are created?

5 Answers  






What are the automatic variables for macro? : sas-macro

0 Answers  


what is the formula to measure Baseline

3 Answers   Sristek,


How do you convert basic cube to transaction cube and transaction cube to basic cube?

0 Answers  


How to do user inputs and command line arguments in SAS? D&B

2 Answers   BoA, Quintiles,


How do you add a prefix to some or all variables in a dataset using a SAS macro?

2 Answers  


Explain the main difference between the sas procedures and functions? : Sas-administrator

0 Answers  


Give some examples where proc report’s defaults are same as proc print’s defaults?

0 Answers  


Categories