Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     CLOSED - Calculate Age for People Turning 65 In 90 Days

Read-Only Read-Only Topic
Go
Search
Notify
Tools
CLOSED - Calculate Age for People Turning 65 In 90 Days
 Login/Join
 
Member
posted
I need to find members of a population who will be turning 65 within the next 90 days. At first this sounded simple, but as I got into the code I realized this is a little more complex than I originally thought. I have the individuals dates of birth and I have successfully calculated the correct age, but it is the ‘turning 65 within 90 days’ that is throwing me off.

Any suggestions on calculating a persons age on a future date?

This message has been edited. Last edited by: ChadSS,
 
Posts: 26 | Location: Jackson, MS | Registered: January 22, 2010Report This Post
Gold member
posted Hide Post
Lets convert years into days.
65 years = 65*365 days = 23725 days

Now lets work backwards; 23725 days - 90 days = 23635 days.

If a person current age is greater than or equal to 23635 days then they will turn 65 within 90 days


WebFOCUS 7.7. Windows Server 2008. All Outputs.

WEBFOCUS 7.6.11. Windows Server 2003. All Outputs.
 
Posts: 60 | Registered: July 10, 2012Report This Post
Virtuoso
posted Hide Post
So their 90th bday would fall in the range (today+1, today+90), right? In order to retrieve records where date of birth is in the appropriate range, you'll need to calculate those two 90-th bday end-point date values (say as &date1, &date2), subtract 90 years from each (&date3, date4), and apply

where dob from '&date3' to '&date4';
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Member
posted Hide Post
I was able to accomplish by doing the following:

DEFINE FILE XFILES
TODAY/I8YYMD = &YYMD;
DAY90/I8YYMD = AYMD(TODAY, 90, 'I8');
DAYS90/YYMD = DAY90;
AGEIN90/I5 = DATEDIF(BRTH_DT, DAYS90, 'Y');
AGE_FLAG/A1 = IF AGEIN90 EQ '65' AND AGE EQ '64' THEN 'Y' ELSE 'N';
END
 
Posts: 26 | Location: Jackson, MS | Registered: January 22, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     CLOSED - Calculate Age for People Turning 65 In 90 Days

Copyright © 1996-2020 Information Builders