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.
The best way I've found is to hold your queries in FORMAT FOCUS, then union them with USE. Unfortunately, this doesn't pass any aggregation to the RDBMS. If you're concerned about that, then embedded SQL would be a better method.
The major caveat is that your hold files need to have EXACTLY the same format. If they don't, then you'll get funky characters in your output. The way I find out the hold file format is to use "? HOLD filename".
Here's an example. The data doesn't make any sense, but at least it illustrates the point!
Regards, Michael
SET HOLDLIST=PRINTONLY SET ASNAMES=ON TABLE FILE CAR SUM COMPUTE MYDATA/A16 = CAR; DEALER_COST BY CAR NOPRINT ON TABLE HOLD AS FIRST FORMAT FOCUS END TABLE FILE CAR SUM COMPUTE MYDATA/A16 = COUNTRY; DEALER_COST BY COUNTRY NOPRINT ON TABLE HOLD AS SECOND FORMAT FOCUS END -* View Source to make sure these HOLD files match field names & formats -* NOTE: CAR & COUNTRY do not have the same format, but both will fit into A16 ? HOLD FIRST ? HOLD SECOND -* Here's the UNION: USE FIRST.FOC AS FIRST SECOND.FOC AS FIRST END -* And finally... output the UNION TABLE FILE FIRST PRINT DEALER_COST BY MYDATA ENDThis message has been edited. Last edited by: <Mabel>,
pranas, i agree with mhuber, and wanted to add just another way, if the master files of the 2 hold files aren't exactly alike. TABLE FILE FIRST PRINT whatever WHERE whatver you might need ON TABLE HOLD AS THIRD MORE FILE SECOND WHERE whatver you might need again END ..Using MORE lets you glue together dissimilar files. and they can be just foctemps (.FTM) and dont have to be .FOC.
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003