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] Join Error (FOC370)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Join Error (FOC370)
 Login/Join
 
Member
posted
Good morning,

I am trying to join two hold files together. The hold files are defined as follows:

TABLE FILE HOLDALL
SUM
LONG
LONG_COUNT
SHORT
SHORT_COUNT
BY COMMODITY_CODE
BY CONTRACT_MONTH
BY CONTRACT_YEAR
BY STRIKE
ON TABLE SET ASNAMES ON
ON TABLE SET PAGE-NUM OFF
ON TABLE SET BYDISPLAY ON
ON TABLE HOLD AS HOLDNONCOMM FORMAT ALPHA
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS OFF
END

TABLE FILE OPEN_INTEREST_SUMM_FIRM_VR
SUM
BEGIN_OPEN_INTEREST
END_OPEN_INTEREST
BEGIN_OPEN_INTEREST_SHORT
END_OPEN_INTEREST_SHORT
BY COMM_CODE_EXCH
BY CONTRACT_MONTH
BY CONTRACT_YEAR
BY EXERCISE_PRICE
&FUT.EVAL WHERE OPTION_TYPE EQ 'F';
&OPT.EVAL WHERE (OPTION_TYPE EQ 'P') OR (OPTION_TYPE EQ 'C');
&PUT.EVAL WHERE OPTION_TYPE EQ 'P';
&CAL.EVAL WHERE OPTION_TYPE EQ 'C';
WHERE DATE_IMPORTED GE DT(&START_DATE);
WHERE DATE_IMPORTED LE DT(&END_DATE);
ON TABLE SET ASNAMES ON
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE SET BYDISPLAY ON
ON TABLE HOLD AS OIHOLD FORMAT ALPHA
ON TABLE SET HTMLCSS OFF
END

and this is my join:

JOIN
HOLDNONCOMM.HOLDNONCOMM.COMMODITY_CODE AND HOLDNONCOMM.HOLDNONCOMM.CONTRACT_MONTH
AND HOLDNONCOMM.HOLDNONCOMM.CONTRACT_YEAR AND HOLDNONCOMM.HOLDNONCOMM.STRIKE IN HOLDNONCOMM
TO OIHOLD.OIHOLD.COMM_CODE_EXCH AND OIHOLD.OIHOLD.CONTRACT_MONTH
AND OIHOLD.OIHOLD.CONTRACT_YEAR AND OIHOLD.OIHOLD.EXERCISE_PRICE IN OIHOLD AS J9
END

I can tell that both hold files are returning properly, the first has 3 records, the 2nd 245. I am getting the error:

(FOC370) THE FIELDNAME USED IN JOIN CANNOT BE FOUND IN THE FILE:
HOLDNONCOMM.HOLDNONCOMM.COMMODITY_CODE

Does anyonne have any suggestions/advice on this?

Thanks in advance!

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


Web Focus Version 7.6.8
Win XP 2002
 
Posts: 11 | Registered: June 25, 2009Report This Post
Master
posted Hide Post
Isn't there a known issue surrounding multiple fields used in join expressions? I recall having to concatenate fields to one unique one and joining that from file to file. That sound familiar to anyone?

- ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
Virtuoso
posted Hide Post
Yeah, AFAIK that's not supported for FOCUS-files. If you need that functionality, apparently XFOCUS-files can do that, or you DEFINE a surrogate key by concatenating the key fields together. With the latter solution, I prefer to put some kind of separator in between the key fields, but that's not a requirement.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Expert
posted Hide Post
This should be OK for non-FOCUS db HOLD files. I would try a JOIN without all those qualifiers - are you sure the segment name in the HOLD file is HOLDNONCOMM?


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Thanks you all for the replies.

This updated join worked, as per Francis' suggestion:

JOIN
HOLDNONCOMM.COMMODITY_CODE AND HOLDNONCOMM.CONTRACT_MONTH
AND HOLDNONCOMM.CONTRACT_YEAR AND HOLDNONCOMM.STRIKE IN HOLDNONCOMM
TO OIHOLD.COMM_CODE_EXCH AND OIHOLD.CONTRACT_MONTH
AND OIHOLD.CONTRACT_YEAR AND OIHOLD.EXERCISE_PRICE IN OIHOLD AS J9
END


Web Focus Version 7.6.8
Win XP 2002
 
Posts: 11 | Registered: June 25, 2009Report 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 Error (FOC370)

Copyright © 1996-2020 Information Builders