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 are symget and symput? : sas-macro
Of all your work, where have you been the most successful?
What do you know about sas data set?
for what purpose would you use the retain statement? : Sas programming
explain the difference between proc means and proc summary?
explain about data integrator metadata reports? : Sas-di
What are the automatic variables for macro? : sas-macro
How do you debug and test your SAS programs?
what are _numeric_ and _character_ and what do they do? : Sas programming
Describe the function and untility of the most difficult SAS macro that you have written.
what are all the reports you generated in your recent project?
What are the different servers in sas? : sas-grid-administration
Mention sas system options to debug sas macros.
What are the table names in oracle database...?
How do you connect the desktop application to metadata server? : sas-grid-administration