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] Problem with a simple Join

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Problem with a simple Join
 Login/Join
 
Gold member
posted
Hi,

I'm trying to make a simple JOIN between two tables with the same structure:

TABLE FILE IMPORT_BLOOMBERG
PRINT 
RTG_BB_COMP AS 'R29'
DATEIMPORT AS 'D29'
WHERE DATEIMPORT EQ '20090129'
BY ISIN AS 'I29'
ON TABLE HOLD AS TAB29
END

TABLE FILE IMPORT_BLOOMBERG
PRINT 
RTG_BB_COMP AS 'R28'
DATEIMPORT AS 'D28'
WHERE DATEIMPORT EQ '20090128';
BY ISIN AS 'I28'
ON TABLE HOLD AS TAB28
END

JOIN CLEAR*
JOIN I29 IN TAB29 TO I28 IN TAB28 AS J1
-RUN


And I become this error message:
(FOC376) SYNTAX ERROR OR MISSING ELEMENT IN JOIN/COMBINE COMMAND

Any idea to solve this problem?

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


WebFOCUS 7.6.4 running on Windows
Output formats : PDF, Excel and HTML
My blog
 
Posts: 61 | Location: Luxembourg | Registered: October 31, 2007Report This Post
Guru
posted Hide Post
why are you starting the join with the '-' symbol?

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


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
 
Posts: 285 | Location: UK | Registered: October 26, 2007Report This Post
Gold member
posted Hide Post
It was a test. It doesn't work with and without the "-" before JOIN.

I will correct my first post to withdraw this "-".


WebFOCUS 7.6.4 running on Windows
Output formats : PDF, Excel and HTML
My blog
 
Posts: 61 | Location: Luxembourg | Registered: October 31, 2007Report This Post
Gold member
posted Hide Post
I solved the problem and it was very very very ... stupid:

I wrote JOIN CLEAR* instead of JOIN CLEAR *!!!!

Thanks for your help, this topic can be close and taggued as "Solved".


WebFOCUS 7.6.4 running on Windows
Output formats : PDF, Excel and HTML
My blog
 
Posts: 61 | Location: Luxembourg | Registered: October 31, 2007Report This Post
Virtuoso
posted Hide Post
If you learned something from it, it wasn't stupid - just an annoyance. Good job. Also, you have to tag the topic as SOLVED yourself. Go to your original post and you can edit the subject line.


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, 2007Report This Post
Virtuoso
posted Hide Post
Jereny

Although it works now I would like to give some advice on this.

You create two holdfiles and you are trying to join them on the ISIN code.
If you want to join two hold tables they should be focus files. On of the files also should have a index key.
So say "on table hold them as xxx format focus index ISIN"

I don't why you are trying to do this, but keep in mind that on of the Holdfiles might have an ISIN that is not in the other.




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, 2006Report This Post
Virtuoso
posted Hide Post
Jérény,

Apparently, in your example you are assuming that ISIN values are unique, meaning that you wont have more than one record per ISIN value. In this case, since you have sorted by ISIN, you shouldn't have any JOIN problems.

However, should that not be the case, and should you wish to have a JOIN MULTIPLE, then yes, you would need to create a FOCUS file, at least for the target file and use
ON TABLE HOLD AS TAB28 FORMAT FOCUS INDEX I28.

Now if your extracted files are large (more than 20K records) you might experience some throughput degradation. In which case, it would be advisable to use some advanced techniques by loading your data yourself into a FOCUS file and creating the index after with REBUILD... INDEX.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report 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] Problem with a simple Join

Copyright © 1996-2020 Information Builders