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     Does Hold File HAVE to be the host file in a join?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Does Hold File HAVE to be the host file in a join?
 Login/Join
 
<Meek>
posted
I'm using Developer Studio version 523.
My procedure is as follows:

- Define field ROOM (made by other define fields)
- Report EMPLOYEE table with ROOM, EMPID, NAME, etc
- Hold Report as EMPROOM format FOCUS Index EMPID, ROOM
- JOIN B_ROOM table to EMPROOM table by RMID->ROOM (1-to-many)
- JOIN B_ROOM table to BLDG table by BLDGCODE->BLDGCODE (many-to-1)
- Report B_ROOM with BLDG, ROOM, EMPID, NAME, etc

Now... This works as long as my hold file exists. How does the hold file not exist you ask? WellIf i first do the join with EMPROOM as the host file and do the second report on EMPROOM and attempt a run, this opens us the hold file. However, I can't get any child data, becaus ethis represents a many-to-one-join. At this point I can then, in Report painter, go to prefixes and change my join to the one described earlier. Then go to the Source field and change the table to the B_ROOM table and run the report. Like magic, everything works beautifully!

The problem? As soon as I close the report or make any changes to the hold file, my join and my report can no longer identify the EMPROOM master file. I'm told by programmers in older versions that have no GUI that they way I want to do it is possible. However, in the version, it won't let me.

HELLLLLPPPP!!!!!
 
Report This Post
Master
posted Hide Post
To Answer your question NO a hold file does not have to be the host file of a join. One thing that you want to make sure is that whenever possible ALWAYS pass the join off the the RDBMS. This way WebFOCUS/FOCUS only has to process the a smaller result set. If you are using an RDBMS try joining the table together then create you define field.
 
Posts: 865 | Registered: May 24, 2004Report This Post
Guru
posted Hide Post
If you are joinning two hold files together I believe one of the hold files needs to have an indexed field which has to be used in the join statement and the hold file has to be of focus format.

Your code should have something like this in it:
ON TABLE HOLD AS hold_filename FORMAT FOCUS INDEX fieldname
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Gold member
posted Hide Post
To be more specific, the guest file of the two in the join must be indexed on the field you are joining on..

Ex.:
JOIN FIELD IN HOSTFILE TO FIELD IN GUESTFILE AS J1

FIELD must be indexed or in sort order in GUESTFILE for your results to be accurate.
 
Posts: 90 | Registered: April 15, 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     Does Hold File HAVE to be the host file in a join?

Copyright © 1996-2020 Information Builders