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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 926 views
  • 0 likes
  • 2 in conversation