Focal Point
[CLOSED] Suppress error messages

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8977055966

March 11, 2014, 01:48 PM
Mike Deluca
[CLOSED] Suppress error messages
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

or

Use MATCH


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
March 12, 2014, 10:58 AM
Mike Deluca
I am using a left outer join.

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:



- 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 ....

As always ...


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP