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.
To my understanding, MATCH FILE with the OLD-AND-NEW match phrase and 3 files should combine as follows:
(FILE1 AND FILE2) AND FILE3
Oddly enough, I get the following output in my source:
MATCH
FILE FILE1
BY PART_NO
RUN
FILE FILE2
BY PART_NO
RUN
FILE FILE3
BY PART_NO
AFTER MATCH HOLD OLD-AND-NEW
END
-RUN
0 NUMBER OF RECORDS SELECTED= 153 LINES= 153
0 NUMBER OF RECORDS SELECTED= 10 LINES= 10
0 LINES OF MATCH OUTPUT = 163
0 NUMBER OF RECORDS SELECTED= 277 LINES= 273
0 LINES OF MATCH OUTPUT = 5
153 lines from FILE1 and 10 lines from FILE2 could not possibly result in 163 lines with OLD-AND-NEW, can it?!? That looks like it's actually applying OLD-OR-NEW there.
Is this a bug or intended?This message has been edited. Last edited by: Wep5622,
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
Each FILE step pulls data and creates an internal matrix.
Each FILE step (other than the first) is followed by a Merge process, merging the rows of the "OLD" and "NEW" matrices into a single one, by applying whichever of the eight merge options (OLD, NEW, OLD-NOT-NEW, etc.) is specified in the AFTER MATCH clause. The output of the merge becomes the "OLD" matrix for the next step.
If the AFTER MATCH clause before RUN is omitted, it defaults to
"AFTER MATCH HOLD OLD-OR-NEW"
-- hence the 163 rows produced by the first merge.This message has been edited. Last edited by: j.gross,
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
MATCH FILE car
BY CAR
IF COUNTRY EQ ENGLAND OR FRANCE
RUN
FILE car
BY CAR
IF COUNTRY EQ ENGLAND OR JAPAN
AFTER MATCH HOLD OLD-AND-NEW
RUN
FILE car
BY CAR
IF COUNTRY EQ ITALY OR ENGLAND
AFTER MATCH HOLD OLD-AND-NEW
END
TABLEF FILE HOLD LIST *
END
-RUN
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
Well what do you know, you can repeat AFTER MATCH! I learned something new again, which makes this a fairly educational couple of days - thanks!
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :