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.
I have two data files (File A and File B) and I need to determine which records that were in File A have been changed in File B. By changed, I mean the values in the sort field have been changed.
The long answer - the how - requires a little more information. Is B a mirror of A, in the sense that both files have the same fields? Will they always have the same number of records or are you trying to detect addtions and deletions also? Are you looking for any change to any field? Are there 'key' fields that uniquely identify each record? How many fields are there?
It would help to see the master file descriptions for both files.
Posts: 135 | Location: Portland, OR | Registered: March 23, 2005
DWF, Yes, A and B are mirrors of one another with exactly the same field. They are basically weekly data dumps from our HRIS system. They should not have the same number of records as each week records for new hire employees are added and records for terminated employees are moved to a file for inactives. Ultimately, I would like to also identify additions and deletions. But in the short term, my goal is to identify changes in any field. This may not be possible as the file currently contains over 400 fields. If necessary, I can limit it down to a number of key fields.
I would have thought that coming from an HR system that one of the columns would be a date/timestamp relating to last update. If that is the case all you need is a SET ALL=PASS match old with new HOLD OLD-OR-NEW then TABLE with where new timestamp ne old timestamp
except that you'd have to break that up, because I serious doubt you can have a define that long.
If this doesn't get you all the way there, it might at least get you close enough to see where you need to be. If JOIN doesn't work and you still need help with MATCH, just say so.
Posts: 135 | Location: Portland, OR | Registered: March 23, 2005
DEFINE FILE FILE1 COUNTER/I5 = 0; COUNTER/I5 = IF A.FIELD1 EQ B.FIELD1 THEN COUNTER ELSE COUNTER + 1; COUNTER/I5 = IF A.FIELD2 EQ B.FIELD2 THEN COUNTER ELSE COUNTER + 1; . . . COUNTER/I5 = IF A.FIELD400 EQ B.FIELD400 THEN COUNTER ELSE COUNTER + 1; END
Alternatively:
COUNTER/I5= (A.FIELD1 NE B.FIELD1) + (A.FIELD2 NE B.FIELD2) + ... + (A.FIELD400 NE B.FIELD400) ; This message has been edited. Last edited by: <Mabel>,
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005