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     [SOLVED] Finding the Max activity date

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Finding the Max activity date
 Login/Join
 
Platinum Member
posted
I have a master file that contains unique person id, email codes, email addresses and address activity date. Four columns of information. There are various kinds of email codes, home, business, school, vendor. A person can have multiple email addresses for one email code. I want to pull the most recent email address by email type for an individual based on the email activity date.

The group by should be by unique id, email code. Then pull the max address activity date of that group of addresses. I can't seem to get this to work. Any ideas in how to go about this? This is what I have so far...

the PIDMEMALCODE is a field that concatenates the unique ID and email code together
the where clause is just limiting the results to a manageable size by specifying a couple of unique ID's and one particular email code 'HOME'

TABLE FILE GOREMAL
BY LOWEST GOREMAL.GOREMAL.GOREMAL_PIDM
BY GOREMAL.GOREMAL.GOREMAL_EMAL_CODE
BY HIGHEST GOREMAL.GOREMAL.GOREMAL_ACTIVITY_DATE
BY GOREMAL.GOREMAL.GOREMAL_EMAIL_ADDRESS
BY GOREMAL.GOREMAL.PIDMEMALCODE
WHERE ( GOREMAL.GOREMAL.GOREMAL_PIDM EQ 43175 OR 3305 OR 238805 ) AND ( GOREMAL.GOREMAL.GOREMAL_EMAL_CODE EQ 'HOME' );
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END

This message has been edited. Last edited by: <Kathryn Henning>,


WF8
Windows
 
Posts: 117 | Registered: May 28, 2015Report This Post
Expert
posted Hide Post
Try
BY HIGHEST 1 GOREMAL_ACTIVITY_DATE
This should retrieve the emails for the latest email activity date - hopefully just one.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Hi Trudy,

You should also look into adding this as a sub query in your GOREMAIL.MAS file.
IBI added this feature to deal with effective dating in PeopleSoft a few years ago.
Using a sub query and a passing a variable you should be able to get any point in time results.

I haven't tried it against Banner tables yet, but will in a few weeks.
Cheers
Peter


Cheers
 
Posts: 3 | Location: Vancouver, BC | Registered: July 20, 2007Report This Post
Platinum Member
posted Hide Post
[SOLVED] the BY HIGHEST 1 worked.

Thanks everyone.


WF8
Windows
 
Posts: 117 | Registered: May 28, 2015Report 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     [SOLVED] Finding the Max activity date

Copyright © 1996-2020 Information Builders