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.
This problem happened a couple of years ago. The code is from FOCUS 7.6.2. I am just coming onto the team to address it. The error message appears right after the DEFINE statement: LINKED FILE DOES NOT HAVE A MATCHING KEY FIELD OR SEGMENT: J1XCHG_KEY. Does anyone have an idea of what may have happened?
JOIN O_EXCH IN REGULTR2 TO XCHG_KEY IN NPANXX AS J1 JOIN T_EXCH IN REGULTR2 TO XCHG_KEY IN NPANXX AS J2 -RUN
TABLE FILE REGULTR2 SUM FST.CONTIG_KEY FST.J1XCHG_KEY FST.J2XCHG_KEY FST.TIEXCH FST.XCG_KEY DMINUTES DREVENUE ALINE_CALL NUM_MSGS BY O_EXCH BY T_EXCH2 BY OSTATE BY TSTATE BY MILEJOIN BY JURIND BY RES_BUS ON TABLE HOLD END
On the belief that the REGULTR2 file now had more instances of the cross reference key field than the NPANXX file, I reversed the JOIN syntax and added the ALL keyword, making NPANXX the host file and REGULTR2 the cross reference file. In that case, even though ? JOIN showed the join to be active, the field CONTIG_KEY was not recognized. That stumped me.
Do you have a different master file with the same name located somewhere in your APP path that precedes the one you are intending to use?This message has been edited. Last edited by: Dan Satchell,
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
It is the JOIN that will negate the DEFINE virtual fields, not the other way around:
quote:
Note that if you are creating a virtual field in a DEFINE command, you must issue the DEFINE after the JOIN command, but before the TABLE request since a JOIN command clears all fields created by DEFINE commands for the host file and the joined structure. Virtual fields defined in Master Files are not cleared.
Tip: If a DEFINE command precedes the JOIN command, you can set KEEPDEFINES ON to reinstate virtual fields during the parsing of a subsequent JOIN command. For more information, see Preserving Virtual Fields Using KEEPDEFINES.
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
JOIN O_EXCH IN REGULTR2 TO XCHG_KEY IN NPANXX AS J1
JOIN T_EXCH IN REGULTR2 TO XCHG_KEY IN NPANXX AS J2
-RUN
DEFINE FILE REGULTR2
CONTIG_KEY/A26 = J1XCHG_KEY | J2XCHG_KEY ;
...
When joining to the same table twice, I always use the TAG clause:
JOIN O_EXCH IN REGULTR2 TO XCHG_KEY IN NPANXX TAG T1 AS J1
JOIN T_EXCH IN REGULTR2 TO XCHG_KEY IN NPANXX TAG T2 AS J2
-RUN
DEFINE FILE REGULTR2
CONTIG_KEY/A26 = T1.XCHG_KEY | T2.XCHG_KEY ;
...
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
Originally posted by Juan Romero: The DEFINE FILE REGULTR2 unables the previous JOIN's with the FILE REGULTR2, by this reason all reference to NPANXX's field is an error.
Mr. Mariani is right, it is the other way around. I appreciate the input.
When joining to the same table twice, I always use the TAG clause:
QUOTE]
In my troubleshooting tests I have added the TAG parameters and and continue to use them because they add more clarity. No effect on the outcome though.
I would like to offer my thanks and apologies to everyone who offered an attempt on this one. The apology is for my lack of followup on this board recently. I tried some of the proposed solutions without success, then decided to go in a different direction.
I rewrote the beginning of the FEX to eliminate the simultaneous joins by doing the first join, writing to a hold file & then doing the second join on the result. Basically, I got the result with less complexity.