BookmarkSubscribeRSS Feed
hovicke
Calcite | Level 5

Hi - I am looking for some help on how to calculate birth year given the below data and assuming the data was run on June 1, 2022:

 

EmployeeYOEAge
A121
B222.4
C325
D425.7
E529

 

This is just a sample set of data as the actual data file is much larger. My goal is to determine which year the employees were born if the data file was ran on June 1, 2022. I originally just subtracted the 'Age' column from '2022' with the int() function but realized that doesn't take into account the report being run in June. Can anyone help point me in the right direction?

1 REPLY 1
PaigeMiller
Diamond | Level 26

June is 6/12 = 0.5 years

 

So subtract the age from 2022.5

--
Paige Miller

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 852 views
  • 0 likes
  • 2 in conversation