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] Conditional Join not working in WebFOCUS 8

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Conditional Join not working in WebFOCUS 8
 Login/Join
 
Guru
posted
It appears that Conditional Joins are not working when you join on more than one field. I am testing some fex files in our test WebFOCUS 8 Environment at version 8.0.2M. The following fex works fine in our 7.6.11 environment.
Can some of you guys test this fex in your WebFocus Environemnts?
  
-* File error_cond_join_wf8.fex

SET ASNAMES = ON
SET HOLDLIST = PRINTONLY

TABLE FILE CAR
SUM
   DEALER_COST
BY COUNTRY
BY CAR
ON TABLE HOLD AS HDEALER
END
-RUN

TABLE FILE CAR
SUM
   RETAIL_COST
BY COUNTRY
BY CAR
ON TABLE HOLD AS HRETAIL
END
-RUN

JOIN CLEAR *
JOIN LEFT_OUTER
     FILE HDEALER  AT COUNTRY AND CAR TAG T1 TO ALL
     FILE HRETAIL  AT COUNTRY AND CAR TAG T2 AS J1
  WHERE T1.COUNTRY EQ T2.COUNTRY;
  WHERE T1.CAR EQ T2.CAR;
END
-RUN
   
TABLE FILE HDEALER
SUM
   DEALER_COST
   RETAIL_COST
BY COUNTRY
BY CAR
END
-RUN

Some screenshots

This message has been edited. Last edited by: Mighty Max,


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Expert
posted Hide Post
Took out the multiple columns, worked, for this simple test.

  
SET ASNAMES = ON
SET HOLDLIST = PRINTONLY

TABLE FILE CAR
SUM
   DEALER_COST
BY COUNTRY
BY CAR
ON TABLE HOLD AS HDEALER
END
-RUN

TABLE FILE CAR
SUM
   RETAIL_COST
BY COUNTRY
BY CAR
ON TABLE HOLD AS HRETAIL
END
-RUN

JOIN CLEAR *
JOIN LEFT_OUTER 
     FILE HDEALER  AT COUNTRY TAG T1 TO ALL
     FILE HRETAIL  AT COUNTRY TAG T2 AS J1
  WHERE T1.COUNTRY EQ T2.COUNTRY;
  WHERE T1.CAR EQ T2.CAR;
END
-RUN
   
TABLE FILE HDEALER
SUM
   DEALER_COST
   RETAIL_COST
BY COUNTRY
BY CAR
END
-RUN


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

This is called "code tightening". If you look at the documentation:
  
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

you can see that there is only one field after the "AT".
Most probably WF7 was more forgiving...


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
Guru
posted Hide Post
Thank you Tom and Danny. Appreciate all of your help. Issue is due to incorrect syntax being used. Sweating
I've been using Conditional Joins more recently because they don't complain about indexes or data not being sorted or having to build a concatenated key. They just do the join.


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Expert
posted Hide Post
quote:
They just do the join.

That's good to know. Thanks for this post Smiler

~ Doug
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 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     [SOLVED] Conditional Join not working in WebFOCUS 8

Copyright © 1996-2020 Information Builders