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]How to match F1.tdate <= F2.xdate?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[solved]How to match F1.tdate <= F2.xdate?
 Login/Join
 
Guru
posted
Let's say we have a transaction file f1 with transaction tdate, and the exchange rate file f2 with date of rate xdate. The exchange rate used to update once a month on the 1st day. Now it is required to update on weekly basis, can't assume that it happens on Mondays.
My report requires to calculate some amounts with the exchange rates on the date of transaction.
How can I determine f1.tdate <= highest 1 f2.xdate? for example, rates are set on sep 01, 06, 13...

f1.tdate        f2.xdate
--------        -------- 
sep 01          sep 01
sep 02          sep 01
sep 03          sep 01
sep 06          sep 06
sep 07          sep 06
sep 08          sep 06
sep 09          sep 06
sep 10          sep 06
sep 13          sep 13
...  


Thanks.

Hua

This message has been edited. Last edited by: Hua,


Developer Studio 7.6.11
AS400 - V5R4
HTML,PDF,XLS
 
Posts: 305 | Location: Winnipeg,MB | Registered: May 12, 2008Report This Post
Guru
posted Hide Post
Because of other selection criteria, there could be no transactions for the 2nd week of september, therefore the rate set in sept 6 would not be referred.


Developer Studio 7.6.11
AS400 - V5R4
HTML,PDF,XLS
 
Posts: 305 | Location: Winnipeg,MB | Registered: May 12, 2008Report This Post
Guru
posted Hide Post
I found a calendar file somewhere in our db and use it to join to the exchange rate file, populate the missing rates with the previous day's rate. Now the transaction file can join the temp daily rate file.
I am OK right. Thanks.

Hua


Developer Studio 7.6.11
AS400 - V5R4
HTML,PDF,XLS
 
Posts: 305 | Location: Winnipeg,MB | Registered: May 12, 2008Report 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]How to match F1.tdate <= F2.xdate?

Copyright © 1996-2020 Information Builders