Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


I have a dataset with variables empid and doj how to calculate retirement age?



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

Post New Answer

More SAS Interview Questions

Please write codes to merge two datasets and keep every record in the first dataset.

1 Answers  


what are the new features included in the new version of sas i.e., Sas 9.1.3? : Sas programming

0 Answers  


Name statements that function at both compile and execution time.

3 Answers   L&T,


What is the difference between %put and symbolgen? : sas-macro

0 Answers  


how does sas handle missing values in an update? : Sas programming

1 Answers  


explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di

0 Answers  


what is sas data set?

0 Answers  


Difference between nodup and nodupkey options?

0 Answers  


how do u test a pros sql(works or not) without executing it?

1 Answers   DELL, HSBC,


You have a data set of 100 observations,how can you restrict the output so that the output has only data from row no. 10 to row no. 20

9 Answers  


How would you delete duplicate observations?

10 Answers   Accenture,


how we can call macros with in data step?

17 Answers   Allianz, ManPower,


Categories