Help using Base SAS procedures

Calculating Age in SAS

Reply
Occasional Contributor
Posts: 9

Calculating Age in SAS

I have two variables "dateofbirth" and "dateofdeath" for a few thousand records. I am trying to calculate in years what the age at death was. How exactly might I do that? 

Occasional Contributor
Posts: 18

Re: Calculating Age in SAS

What type of format is the data for both of the variables "dateofbirth" and "dateofdeath"?

Occasional Contributor
Posts: 9

Re: Calculating Age in SAS

They are in yyyymmdd format.
Super User
Posts: 17,813

Re: Calculating Age in SAS

Ask a Question
Discussion stats
  • 3 replies
  • 254 views
  • 0 likes
  • 3 in conversation