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
Explain the use of proc gplot? : sas-grid-administration
What areas of SAS are you most interested in?
If money were no object, what would you like to do?
Mention sas system options to debug sas macros.
Explain the special input delimiters used in sas programming.
why is a stop statement needed for the point=option on a set statement? : Sas programming
what is the use of proc contents and proc print in sas? : Sas-administrator
Mention the difference between ceil and floor functions in sas?
What does the trace option do?
What is the difference between proportion and average?
how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?
In proc transpose and data step with arrays which one you pick?
What is the difference between match merge and one to one merge?
Explain data step in SAS
how to change the execute of macro