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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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