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
How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?
How we can call macros with in data step? : sas-macro
What is SAS informats?
describe about metadata object? : Sas-di
what is the use of sas management console? : Sas-di
Name any two sas spawners? : sas-grid-administration
sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately
What are the parameters of scan function?
What is the maximum length of the macro variable? : sas-macro
what is sas application server, database server, sas olap server and sas metadata server? : Sas-di
Mention common programming errors committed in sas ?
in the flow of data step processing, what is the first action in a typical data step? : Sas programming
Difference between SAS STATA & SPSS?
what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming
What is the order of application for output data set options, input data set options and SAS statements?