Search the site...

SASCRUNCH TRAINING
  • Home
  • Member's Area
  • How to Start
  • SAS Interface
  • Creating a Data Set
  • Practical SAS Training Course
  • SAS Certified Specialist Training Program
  • Proc SQL Course
  • Introduction to Time Series Analysis
  • SAS Project Training Course
  • Full Training / Membership
  • Sign up
  • About us
  • Contact us
  • Home
  • Member's Area
  • How to Start
  • SAS Interface
  • Creating a Data Set
  • Practical SAS Training Course
  • SAS Certified Specialist Training Program
  • Proc SQL Course
  • Introduction to Time Series Analysis
  • SAS Project Training Course
  • Full Training / Membership
  • Sign up
  • About us
  • Contact us
Sentry Page Protection
Please Wait...
Exercise (4-9)

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.
Next
Already a member? Go to member's area.