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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Join And Match

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Join And Match
 Login/Join
 
Gold member
posted
what is the difference between the Join and Match.

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


7.1.1
Windows XP
HTML
 
Posts: 64 | Location: North Carolina | Registered: December 04, 2007Report This Post
Virtuoso
posted Hide Post
You can find out what differences there are by reading the manual and/or searching the forum first.
If you still have questions after having done this, then we'll be glad to try and help out.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Guru
posted Hide Post
Also, keep in mind, if you can get the JOIN to work, use it. MATCH is not as efficient but sometimes necessary.



WebFOCUS 7.6.6/TomCat/Win2k3
 
Posts: 428 | Location: Springfield, MA | Registered: May 07, 2003Report This Post
<Shyam L>
posted
Krish, you will get the syntax for both from Dev Studio help itself. You need not even go to manuals. Doing it practically will help you in understanding the difference a lot better.

And as Gamp mentioned if you still have specific questions there a lot of people to answer your queries here.
 
Report This Post
Virtuoso
posted Hide Post
Think of match as I have two files (or more) that I want to either merge together or do a screening to get say all in one file that are not in the other or all that that have a record in both files and so on. ( A and B, A or B, A not B, B not A, and so on.) Join of files require you have a key field to join on and for those records in the primary file the joined to file may or may not have a matching record.

All syntax I leave to you and the manuals and developer studio.

Have a great day.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Gold member
posted Hide Post
here is my code and column names.

-SET &PACK1 = 'Schema.package.SP1';
ENGINE SQLORA SET DEFAULT_CONNECTION DATASOURCE
ENGINE SQLORA
EX &PACK1 '*','2008','USD';
TABLE FILE SQLOUT
PRINT
A1
A2
A3
A4
ON TABLE HOLD AS HOLD1
END

-SET &PACK2='Schema.package.SP1';
ENGINE SQLORA SET DEFAULT_CONNECTION DATASOURCE
ENGINE SQLORA
EX &PACK2 '*','2008','USD';
TABLE FILE SQLOUT
PRINT
A1
A2
A3
A4
ON TABLE HOLD AS HOLD2
END

can u suggest me how to match all the column names. in one single hold file.


WebFOCUS 8.0.0.7 App Studio
 
Posts: 67 | Registered: September 26, 2008Report This Post
<JG>
posted
post deleted

This message has been edited. Last edited by: <JG>,
 
Report This Post
Master
posted Hide Post
quote:
Also, keep in mind, if you can get the JOIN to work, use it. MATCH is not as efficient but sometimes necessary.


Carol, join is more efficient with a few records (interactive process), but generally if you are processing whole files (in a batch process say) then MATCH will be more efficient.



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
 
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006Report This Post
Virtuoso
posted Hide Post
MATCH FILE HOLD1
WRITE CNT.A1 AS COUNT1
BY A1 BY A2 BY A3 BY A4
RUN
FILE HOLD2
WRITE CNT.A1 AS COUNT2
BY A1 BY A2 BY A3 BY A4
AFTER MATCH HOLD OLD-OR-NEW
END

That will provide one record per unique combination of fields A1 through A4, with a pair of counters to indicate the source.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report 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] Join And Match

Copyright © 1996-2020 Information Builders