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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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