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     Join error on a defined field?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Join error on a defined field?
 Login/Join
 
Master
posted
I'm attempting to join on a define field and am recieving the following error.

0 ERROR AT OR NEAR LINE 5 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC370) THE FIELDNAME USED IN JOIN CANNOT BE FOUND IN THE FILE: INV_NUM_ME
BYPASSING TO END OF COMMAND

My .fex is as follows:
DEFINE FILE JOBDATA
INV_NUM_ME/A20=IF LENV(INVNUMBER, 'I8') GE 8 THEN SUBSTR(LENV( INVNUMBER, 'I8' ), INVNUMBER, 4, 8, 5, 'A5') ELSE INVNUMBER;
END
JOIN LEFT_OUTER INV_NUM_ME WITH INVNUMBER IN JOBDATA TO PSC_INVNUMBER IN ORDER_TRANSACTIONS_TBL AS JX1
TABLE FILE JOBDATA
PRINT INV_NUM_ME AS 'MISSING INVOIVCE,IN LC'
WHERE PSC_INVNUMBER IS MISSING OR PSC_INVNUMBER EQ ''
END

Thank you for your patience as this is my first attempt at what I can assume is a fairly routine task.


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Expert
posted Hide Post
The JOIN comes before the DEFINE, even for DEFINE-based JOINs.


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
Master
posted Hide Post
Great Francis! Thanks.


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Expert
posted Hide Post
Francis,

THANKS!! I totally missed that from the other posing...

Tom


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Virtuoso
posted Hide Post
Francis, you beat me to it. Good One


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report 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     Join error on a defined field?

Copyright © 1996-2020 Information Builders