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] Match-merge

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Match-merge
 Login/Join
 
Platinum Member
posted
I have two files. One named "DIST_RPT" that has all the data I need for a report including Account numbers. The other file is named "EXCLUDE_ACCOUNTS" that only has a list of Accounts that I want to exclude from the report. I am pretty new to WF and I am having trouble getting a resulting file that has all the data from DIST_RPT but excludes the rows with the Account numbers that are in EXCLUDE_ACCOUNTS. Can anyone help? Any suggestions would be appreciated. I looked in the Help manuals and they show the syntax for Match/Merge for merging files, but not how to 'Exclude' accounts from file 1 based on the accounts that are in file 2.

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


7.7.02
Windows
EXCEL, PDF, CSV, TEXT
 
Posts: 106 | Registered: June 25, 2009Report This Post
<JG>
posted
What format are the files?

There are many options for doing what you want.

Read up on JOIN, MATCH and WHERE (using NOT IN FILE)
 
Report This Post
Expert
posted Hide Post
If you use MATCH, use the OLD-NOT-NEW option. The WHERE field NOT IN FILE would also work well if you can stay within the byte limit. Multiply the length of the account number by the number of rows in the exclude file. It needs to be LE 16000 for a relational host and 32K for others.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Gold member
posted Hide Post
Use this:

MATCH FILE DIST_RPT
PRINT *
BY ANY_FIELD_VALUE
RUN
FILE EXCLUDE_ACCOUNTS
BY ANY_FIELD_VALUE(THIS SHUD BE SAME AS ABOVE)
AFTER MATCH HOLD AS HOLD-FILE-NAME OLD-NOT-NEW
END
-RUN


webFOCUS 7.6.x,
z/OS(Mainframes),
Excel and HTML
 
Posts: 51 | Registered: August 31, 2009Report This Post
Virtuoso
posted Hide Post
Ted,

Again, what are the formats of the files? FOCUS? RDBMS? FLAT? other?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Platinum Member
posted Hide Post
I have the solution. Thanks for your help.


7.7.02
Windows
EXCEL, PDF, CSV, TEXT
 
Posts: 106 | Registered: June 25, 2009Report This Post
Virtuoso
posted Hide Post
Ted,
Would you care to share your solution with us?
A lot of people are thinking along with you and trying to help you, and it is somewhat disappointing to only read that it is solved. How? Did our suggestion help in any way? Or did you do things differently?
We can always learn from someone else's experiences.
And if the problem is really solved, please update the topic to indicate that.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report 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] Match-merge

Copyright © 1996-2020 Information Builders