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     [CASE OPENED] Join not showing expected output!

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CASE OPENED] Join not showing expected output!
 Login/Join
 
Silver Member
posted
Hi,

Would appreciate a quick suggestion on the below issue.

I have two MFDs A (HOST) and B (Cross Referenced). I am using the below join in the fex file. B has only data for Year (2017, 2018) and Month (Aug, 2017 to Feb 2018). After the Join I expected to get data for above mentioned months and year only. But Instead I get for all the Years (from 2012) and months, which are present in Host file. When I select columns from CF MFD, it does not show anything. It appears the join is not happening. But why?

All the webfocus help docs on joins says I should get the expected result as it is a inner join. But this is not working.

JOIN
INNER A.DF_YEAR
AND A.DF_MONTH
IN A TO MULTIPLE
B.YEAR
AND B.MONTH
IN B TAG J1 AS J1
END

TABLE FILE A
PRINT
     A.DF_YEAR
     A.DF_MONTH
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
     INCLUDE = IBFS:/EDA/EDA/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END  

This message has been edited. Last edited by: FP Mod Chuck,


WebFocus 8.1 Service Pack 0.5
Build Version branch8105
Build/GEN Number 119

OS/Platform: Apache Tomcat/8.0.21
 
Posts: 46 | Location: Baltimore | Registered: October 27, 2016Report This Post
Virtuoso
posted Hide Post
In your TABLE request you only reference columns from table A. If you add a column from table B you'll get what you want. If you don't want to see the column from table B you can add a NOPRINT. The JOIN is only forced when you reference columns from both tables.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Silver Member
posted Hide Post
quote:
Originally posted by BabakNYC:
In your TABLE request you only reference columns from table A. If you add a column from table B you'll get what you want. If you don't want to see the column from table B you can add a NOPRINT. The JOIN is only forced when you reference columns from both tables.


BabakNYC,

I had tried with fields from CF MFD as well. But I still get years other than 2017 and 2018. That means it is doing left outer join. But as per the code, it should not.


WebFocus 8.1 Service Pack 0.5
Build Version branch8105
Build/GEN Number 119

OS/Platform: Apache Tomcat/8.0.21
 
Posts: 46 | Location: Baltimore | Registered: October 27, 2016Report This Post
Virtuoso
posted Hide Post
Sandeep

Try making it a UNIQUE join...

JOIN
INNER A.DF_YEAR
AND A.DF_MONTH
IN A TO UNIQUE
B.YEAR
AND B.MONTH
IN B TAG J1 AS J1
END


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Silver Member
posted Hide Post
quote:
Originally posted by FP Mod Chuck:
Sandeep

Try making it a UNIQUE join...

JOIN
INNER A.DF_YEAR
AND A.DF_MONTH
IN A TO UNIQUE
B.YEAR
AND B.MONTH
IN B TAG J1 AS J1
END


Chuck,

I did that but I still get unexpected year data.
The DF_YEAR and DF_MONTH in the A mfd are defined columns in the MFD. Does this have anything to do with it?

 JOIN
INNER A.DF_YEAR
AND A.DF_MONTH
IN A TO UNIQUE
B.YEAR
AND B.MONTH
IN B TAG J1 AS J1
END
-* File: IBFS:/mdart/WFC/Repository/Staging/Report1.fex Created by WebFOCUS AppStudio
TABLE FILE A
PRINT
     A.DF_YEAR
     J1.B.YEAR
     A.DF_MONTH
     J1.B.MONTH
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = IBFS:/EDA/EDA/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END 


WebFocus 8.1 Service Pack 0.5
Build Version branch8105
Build/GEN Number 119

OS/Platform: Apache Tomcat/8.0.21
 
Posts: 46 | Location: Baltimore | Registered: October 27, 2016Report This Post
Virtuoso
posted Hide Post
Sandeep

Please post both Master files in use so I can compare them...


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 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     [CASE OPENED] Join not showing expected output!

Copyright © 1996-2020 Information Builders