How can I suppress a FOC1072 DUPLICATES IN JOIN 'FROM' FIELD error message? It is not actually an error that prevents the data from retrieving, but for large data sets it causes the report to fail because of the number of error messages.This message has been edited. Last edited by: <Kathryn Henning>,
Prod/Dev: WebFOCUS 8.0.06 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.06 on Windows 7
March 12, 2014, 04:49 AM
Twanette
Hi, It sounds like you are joining from a "flat" file e.g. a text file. If so, perhaps you should use a different format for the "from" file? e.g. a FOCUS DB?
WebFOCUS 8.2.06 mostly Windows Server
March 12, 2014, 10:32 AM
Mike Deluca
I am using a flat file because I am joining multiple fields.
Prod/Dev: WebFOCUS 8.0.06 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.06 on Windows 7
March 12, 2014, 10:44 AM
Tom Flynn
Duplicates in JOIN "FROM" field mandates a LEFT_OUTER or MATCH:
JOIN LEFT_OUTER COL_NAME IN FILE_NAME TO ALL COL_NAME IN FILE_NAME AS J1
JOIN LEFT_OUTER SCANSHOLD2.SCANSHOL.PERIOD_WEEK AND SCANSHOLD2.SCANSHOL.USERNAME AND SCANSHOLD2.SCANSHOL.CONSOLID IN SCANSHOLD2 TO MULTIPLE TEMPHOURS2.TEMPHOUR.PERIOD_WEEK AND TEMPHOURS2.TEMPHOUR.USERNAME AND TEMPHOURS2.TEMPHOUR.CONSOLID IN TEMPHOURS2 TAG J8 AS J8 END
Prod/Dev: WebFOCUS 8.0.06 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.06 on Windows 7
March 12, 2014, 11:08 AM
j.gross
Is the joined-to file also a flat file? In a flat-to-flat, the composite key must be strictly increasing in value.
March 12, 2014, 11:16 AM
Mike Deluca
Yes, it is flat to flat.
Prod/Dev: WebFOCUS 8.0.06 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.06 on Windows 7
March 12, 2014, 11:32 AM
j.gross
Here are three approaches to try:
use MATCH FILE
create Focus files with the catenated join keys as a single field, indexed on the TO side
use Focus files, with a condition-based join.
- Jack Gross WF through 8.1.05
March 12, 2014, 11:40 AM
Mike Deluca
I am looking for a way to suppress the error message, not redo my code.
Prod/Dev: WebFOCUS 8.0.06 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.06 on Windows 7
March 12, 2014, 12:17 PM
Francis Mariani
There's no way to suppress the error without redoing your code.
The only WebFOCUS error/warning message you can suppress is FOC144, using the FOC144 command: SET FOC144 = {NEW|OLD}.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
March 12, 2014, 12:37 PM
David Briars
quote:
...use Focus files, with a condition-based join...
Even though I've used the conditional join for relational data sources, it is still ingrained in me that for FOCUS you need an equijoin (plus restriction to only one cross-refrenced field).
Thanks for the bump on the head, that the conditional join is supported for FOCUS.This message has been edited. Last edited by: David Briars,
March 13, 2014, 01:12 PM
George Patton
Jack is right, Twanette is right, Francis is right, Tom is right ....