what is the difference between the Join and Match.This message has been edited. Last edited by: Kerry,
7.1.1 Windows XP HTML
September 03, 2008, 07:21 AM
GamP
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
September 03, 2008, 08:10 AM
Carol Dobson
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
September 04, 2008, 06:15 AM
<Shyam L>
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.
September 04, 2008, 06:54 PM
Leah
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
October 24, 2008, 02:19 AM
Santhu
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
October 24, 2008, 03:07 AM
<JG>
post deletedThis message has been edited. Last edited by: <JG>,
October 24, 2008, 08:19 AM
hammo1j
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
October 24, 2008, 12:04 PM
j.gross
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.