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 |
differnce between 8.2 and 9.1.3
what is treatment emergent events and treatment emregent adverse event
What is SAS Information Map Studio and its purpose ?
What data sets do you need to produce the report?
what is Global Symbol table and Local symbol table?
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
how do u identify a macro variable
what are some differences between proc summary and proc means? : Sas programming
How to create list output for cross-tabulations in proc freq?
why is sas data integration studio important? : Sas-di
what is sas metadata server? : Sas-di
What are the automatic variables for macro? : sas-macro