BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
PGStats
Opal | Level 21

Now you can validate the original Oracle code Smiley Wink!

PG
Ahsan
Calcite | Level 5
hi pg,
Yes I validate it looks perfect thank you very much. I just have a quick question I have the same scenario this time the business logic is like this

"Member Age at end of the State Fiscal Year
June 30. Determine end of SFY (yyyy) from RPT_PERIOD (yyyymm). Calculate MBR_AGE_EOS at 6/30/yyyy according to MBR_BRTH_DT."

Can I use the same code and change 7 into 6
PGStats
Opal | Level 21

Not really, you should use

 

age = intck("YEAR", <mbr_brthdt>, intnx("YEAR.7", <rpt_period>, 0, "END"), "CONTINUOUS");
PG
Ahsan
Calcite | Level 5
works like a charm you are the best
Ahsan
Calcite | Level 5
Hi PG Stats,

I need your help that 's the Business logic I need to calculate the "Member age at beginning of the month each month. Calculate MBR_AGE_BOM using RPT_PERIOD_BEG_DT.

I appreciate all the help.
PGStats
Opal | Level 21

Please post as a new topic, including what you have tried so far. Hint: consider mixing the approach given above with the MDY() function.

PG

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
  • 20 replies
  • 4922 views
  • 0 likes
  • 4 in conversation