I have a dataset with variables empid and doj how to calculate retirement age?
Answer Posted / 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 View All Answers
Differentiate between proc means and proc summary.
what is sas metadata server? : Sas-di
what is change analysis in sas di ? : Sas-di
For what purposes have you used sas macros? : sas-macro
Mention few capabilities of sas framework.
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
Mention some common errors that are usually committed in sas programming.
What are the scrubbing procedures in sas?
what is information maps?
What is the difference between one to one merge and match merge? Give an example.
for what purpose would you use the retain statement? : Sas programming
How to create an external dataset with sas code?
How are numeric and character missing values represented internally?
What is the order of application for output data set options, input data set options and SAS statements?
what is program data vector? : Sas-administrator