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.
Please pardon me if this question has been raised earlier. I want to merge three tables together and put it in a hold file, but for some reason following the standard syntax is not helping. Can someone identify what's wrong with what I'm doing?
TABLE FILE TABLE1 MORE FILE TABLE2 MORE FILE TABLE3 END
I expect TABLE1 to have merged rows of the TABLE1, TABLE2, TABLE3 in that order, but it keeps rows of only TABLE1.
Thanks in advance! ----------------------------------------------This message has been edited. Last edited by: Kerry,
There are a number of rules to follow to use MORE or Universal Concatenation.
The first thing I noticed is that you don't have a PRINT or SUM statement for your first table.
The second thing is that all of the column names to be printed in all 3 of the masters have to be the same.This message has been edited. Last edited by: GinnyJakes,
I tried above syntax with other tables, and it's working, so I'm guessing columns may not be compatible in my tables. So, - If columns are not compatible, does it simply ignore those tables? - Also, how do I find out which columns are not compatible?
The columns you're extracting from each of the tables must have the same name and format - if they're not the same name and format, you may define virtual fields to rename/reformat them.
If columns do not correspond you should get warning/error messages.
Take a look at the Master files (.mas) for each table, or run this code for each table:
?FF TABLE1
?FF TABLE2
...
This will display the column names. aliases and formats
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
TABLE FILE TABLE1
PRINT COL1 COL2 COL3
WHERE COL3 LT 4
ON TABLE HOLD AS HOLITALL --- add this line
MORE
FILE TABLE2
PRINT COL1 COL2 COL3
MORE
FILE TABLE3
PRINT COL1 COL2 COL3
END
WF 7.6.11 Oracle WebSphere Windows NT-5.2 x86 32bit
Note that selection criteria (WHERE and IF clauses) only apply to the section in which they are coded. If you want to impose WHERE COL3 LT 4 on all three FILE retrievals you have to repeat it:
TABLE FILE TABLE1
PRINT COL1 COL2 COL3
WHERE COL3 LT 4;
ON TABLE HOLD AS HOLITALL
MORE
FILE TABLE2
WHERE COL3 LT 4;
MORE
FILE TABLE3
WHERE COL3 LT 4;
END