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.
DEFINE FILE B CONTKEY8/A8 EDIT(CONTKEY,'99999999$$$');
I want to join A and B via CONTRACT and CONTKEY because the first 8 chars of CONTKEY is the contract. When I executed the join after the DEFINE stmt, I got... (FOC370) THE FIELDNAME USED IN JOIN CANNOT BE FOUND IN THE FILE
Thanks in advance for any help!
Thanks, Ronnel C WebFocus 7.1.5 IBM ZOS 1.6
Posts: 44 | Location: Fort Wayne, IN | Registered: February 07, 2007
The with tells you where the define is located within a multi segment structure although this should not be strictly necessary since wf can tell where a define field is logically related unless it is a constant.
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, 2006
Some databases allow the join to the first part of a key without having to do a define. Can't tell what DB you are using, though.
One other note - with your defined field you would have to join B to A. Joining A to B would not work. You can't join a real field in A TO a defined field in B, but you can join FROM a defined field in B to a real field in A.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
What would be the result if you change the USAGE value of this field in the master? If the real value in the Database B should be A8 then that would be an other solution. (In fact a correction on the database design)
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006