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     [CLOSED] JOIN with WHERE not working after migration 7706

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] JOIN with WHERE not working after migration 7706
 Login/Join
 
Member
posted
Hi,

I have recently migrate from 7704M to 7706M. The code below worked in old version but in new is throwing an error:

JOIN
TIG00513.N_PE IN TIG00513 TO TIG00479.N_PE IN TIG00479 AS Z6
WHERE (C_GRAN_CLI EQ '075') AND (Z_INICIO LE '20150615' AND Z_FIM GT '20150615') AND (Z_DIA EQ '20150615');
END

TABLE FILE TIG00513
...

0 ERROR AT OR NEAR LINE 69 IN PROCEDURE __WCFEX FOCEXEC *
(FOC376) SYNTAX ERROR OR MISSING ELEMENT IN JOIN/COMBINE COMMAND

Any ideias?

Tnaks in advance.

AS

This message has been edited. Last edited by: <Kathryn Henning>,


7706M
AIX 7.1
HTML
 
Posts: 22 | Location: Portugal | Registered: May 07, 2015Report This Post
Expert
posted Hide Post
A Conditional JOIN requires an AT attribute. Perhaps code tightening is causing the error. Try adding AT cross-referenced-column-name.

The syntax of the conditional (WHERE-based) JOIN command is 

JOIN [LEFT_OUTER|INNER] FILE hostfile AT hfld1     [WITH hfld2] [TAG tag1]
     TO {UNIQUE|MULTIPLE} 
     FILE crfile AT crfld [TAG tag2] [AS joinname]
     [WHERE expression1;
     [WHERE expression2;
     ...]
END


Documentation: Creating Reports With WebFOCUS Language > Joining Data Sources > Using a Conditional Join


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
Hi,

I've rewrite the join to:

JOIN FILE TIG00513 AT N_PE
TO UNIQUE
FILE TIG00479 AT N_PE AS Z6
WHERE (C_GRAN_CLI EQ '075');
WHERE (Z_INICIO LE '20150615' AND Z_FIM GT '20150615') AND (Z_DIA EQ '20150615');
END

This doesn't give any error but hangs forever.
Am I missing something?

Thanks one more time.


7706M
AIX 7.1
HTML
 
Posts: 22 | Location: Portugal | Registered: May 07, 2015Report This Post
Virtuoso
posted Hide Post
If the data sources are relational databases, you should obtain and inspect the SQL statement trace.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report 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     [CLOSED] JOIN with WHERE not working after migration 7706

Copyright © 1996-2020 Information Builders