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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 2198 views
  • 0 likes
  • 4 in conversation