Sentry Page Protection
Exercise (4-9)
Run the code in the yellow box before working on this exercise:
Run the code in the yellow box before working on this exercise:
The DATE data set contains the date of marriage information from a list of survey participants:
- ID: Survey Participant's Identification
- BIRTHDATE: Date of Birth
- MARRIAGEDATE: Date of marriage
To calculate the marriage age for each participant, we can use the equation below:
Age of Marriage = (Date of Marriage - Date of Birth)/365.25
However, the age must be rounded down to the nearest integer.
Write a SAS program to calculate the marriage age for each survey participants.