Item #26622 (25 Apr 2002 11:19) - Re: calculating age From: "Arthur J. Kendall" Subject: Re: calculating age Comments: To: kkinglis try COMPUTE x2 = trunc(CTIME.DAYS(admsndat - birthdat) / 365.25) . EXECUTE . > I am getting an error when I compute an age. I have two variables: > admsndat and birthdat. The age is calculated by admsndat-birthdat. I > need the age truncated to an integer. > This is my code : > COMPUTE x2 = CTIME.DAYS(admsndat - birthdat) / 365 . > EXECUTE . > > I am getting an age of 70.2 which truncates to 70. The correct age > should be 69. Can you help me?