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.
For one of the reports I am working on I have to concatenate multiple data sources. These data sources can have millions of records within them. So my question is which is more efficient in concatenating MORE or USE? Also another otion I was suggested was FILEDEF (APPEND. But I am not sure if that is better than MORE or USE.
TABLE FILE CAR
PRINT
COUNTRY
DEALER_COST
WHERE COUNTRY EQ 'ENGLAND'
ON TABLE HOLD AS HDATA FORMAT FOCUS
END
-RUN
TABLE FILE CAR
PRINT
COUNTRY
DEALER_COST
WHERE COUNTRY EQ 'JAPAN'
ON TABLE HOLD AS H2 FORMAT FOCUS
END
-RUN
-* Using MORE
TABLE FILE HDATA
PRINT
COUNTRY
DEALER_COST
ON TABLE HOLD AS HDATA
MORE
FILE H2
END
-RUN
-*-* Using USE
-*USE
-*HDATA AS HDATA
-*H2 AS HDATA
-*END
-*-RUN
TABLE FILE HDATA
PRINT
COUNTRY
DEALER_COST
END
-RUN
This message has been edited. Last edited by: Mighty Max,
There are so many variable involved here that there will never be one final answer that applies to all databases, all operating systems, all configurations of reporting servers etc. etc.
My suggestion to you is to coordinate with your DBA(s) and try both techniques. Then you will have the correct answer for your installation.
I have been at about a dozen different clients over the years, and I have used both techniques, although never both at one place
Robert F. Bowley Jr. Owner TaRa Solutions, LLC
In WebFOCUS since 2001
Posts: 132 | Location: Gadsden, Al | Registered: July 22, 2005
If you are taking about millions of rows, then I would suggest FILEDEF APPEND, and use TABLEF, but then you will have a concatenated file that is not sorted. All depends on what you are doing with the results.
If you have "millions" of records AND you are on Windows (and not Unix or a Mainframe), then I would not use APPEND. I have done that and experienced terrible degradation of response time. What I found out is that when you use APPEND, new data is not added to the file but a new file is created onto which WebFOCUS first copies the old file before adding the the records from the new extraction. When I had to do this, I created many different files and then used: !COPY FILE1+FILE2+...+FILEn FILELAST
Secondly, if you have "millions" of records, do not create intermediate FOCUS files: you are in fact creating a sequential file then loading it into a FOCUS file, thus reading and writing all your records twice.
Specifically, what is the structure of your original files? FOCUS? Sequential? SQL? Other? Start with that, and see what is the result you want to achieve.
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, 2006