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
What does PROC print, and PROC contents do?
what is the use of proc sql? : Sas programming
what techniques and/or procs do you use for tables? : Sas programming
Differentiate between ceil and floor functions.
What was the last computer book you purchased? Why?
What are the difficulties u faced while doing vital signs table or dataset?
what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming
Compare sas with other data analytics tools.
describe how to adjust the performance of data integrator? : Sas-di
What are the 3 components in sas programming?
what is sas and what are the functions? : Sas-administrator
Explain the special input delimiters used in sas programming.
What is factor analysis?
how to debug and test the sas program? : Sas-administrator
Explain translate function?