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

differnce between 8.2 and 9.1.3

1 Answers  


what is treatment emergent events and treatment emregent adverse event

0 Answers  


What is SAS Information Map Studio and its purpose ?

2 Answers   SAS, TCS,


What data sets do you need to produce the report?

2 Answers   Novartis,


what is Global Symbol table and Local symbol table?

4 Answers   CitiGroup,






If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro

0 Answers  


how do u identify a macro variable

5 Answers  


what are some differences between proc summary and proc means? : Sas programming

0 Answers  


How to create list output for cross-tabulations in proc freq?

0 Answers  


why is sas data integration studio important? : Sas-di

0 Answers  


what is sas metadata server? : Sas-di

0 Answers  


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

0 Answers  


Categories