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     Using Define Fields in a Master File Join

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Using Define Fields in a Master File Join
 Login/Join
 
Gold member
posted
Hello. I've got a question around joining two oracle tables through master files. I have a budget_center field that in one system is reported as 5 character and the rest of our world uses 4 characters. It is the same thing with an extra character in the front.

I have defined a field on my employee master that will strip that leading space (using substring) and when I join it will not let me. The fields are the same data type and length.

What am I missing?
 
Posts: 62 | Location: Rochester, NY | Registered: September 30, 2005Report This Post
Expert
posted Hide Post
I don't think you can join two Oracle tables based on a defined field that is a string manipulation.

I believe it will only work for selection criteria.
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
It seems like it is in fact processing the join first and then deals with the define. It will let me join the two but will not return any data. Running each piece individually gets me the data that I should see but they won't link up.

It works ok if I do the first piece in the of emp to job codes in the report and hold it. Then if I join back to the org structure it works. However, this all happens post join and define. Looks like I may need budget_center_A and budget_center_B Frowner
 
Posts: 62 | Location: Rochester, NY | Registered: September 30, 2005Report This Post
Expert
posted Hide Post
Have you tried turning on the SQL trace to see what SQL is generated and if there are any messages from the WebFOCUS SQL translator?

I would set XRETRIEVAL to OFF to test the code.

Put this before the report code:

SET XRETRIEVAL = OFF

SET TRACEOFF = ALL
SET TRACEON = SQLTRANS
SET TRACEON = STMTRACE//CLIENT
SET TRACEON = SQLAGGR//CLIENT
SET TRACESTAMP = OFF
SET TRACEWRAP = 78
SET TRACEUSER = ON
-RUN
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
No. But then again I can't get the files to join up in the master so I have not written a report off of them either.

The only way I have gotten my answer set back is to join emp -> job codes and HOLD and then HOLD to organization and then I'm all set. But that is an extra step I wish to avoid on behalf of all the developers who will use this object.
 
Posts: 62 | Location: Rochester, NY | Registered: September 30, 2005Report This Post
Gold member
posted Hide Post
All of those trace commands makes me realize I have a lot to learn here.
 
Posts: 62 | Location: Rochester, NY | Registered: September 30, 2005Report This Post
Gold member
posted Hide Post
Curious if there was ever an answer about DEFINE-BASED JOINS in a Master File. I have a project where I could sure use one.
 
Posts: 64 | Location: Denver | Registered: July 20, 2005Report This Post
Expert
posted Hide Post
If you are using SQL based data then why not get a view set up where the field you require defined is already part of the view? That way you won't have to rely upon WF defines.

Then again, why not go the whole hog and get the join structure set up as a view .....

If your DBAs are none to keen on setting up views (and some are not I know) then just do the whole thing in SQL within your fex.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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     Using Define Fields in a Master File Join

Copyright © 1996-2020 Information Builders