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.
I am trying to put together a prototype MORE Concatenation with the CAR file for a later coding problem. I've looked at the techsupport and it is deficient with an example for a nonexistent EXPERSON file.
Here is what I have so far...
I have created the 2 hold files I like to merge for my report.
TABLE FILE CAR
SUM SALES
BY COUNTRY
ON TABLE HOLD AS C1
END
-RUN
?FF C1
-RUN
TABLE FILE CAR
SUM DC
BY COUNTRY
ON TABLE HOLD AS C2
END
-RUN
?FF C2
-RUN
and my Master defintions look like this:
quote:
FILENAME= C1 COUNTRY E01 A10 SALES E02 I6
FILENAME= C2 COUNTRY E01 A10 DEALER_COST E02 D7
Now I understand that I need to create 1 or more virtual fields but this iw where I got lost.
I'm trying to come up with a request like:
TABLE FILE C1 SUM SALES DEALER_COST BY COUNTRY MORE FILE C2 END
Any insights that anyone can provide, I would appreciate it.
Thanks!This message has been edited. Last edited by: <Kathryn Henning>,
Untested, but if you add these virtual fields it should start working:
DEFINE FILE C1
DEALER_COST/D7 = 0;
END
DEFINE FILE C2
SALES/I6 = 0;
END
TABLE FILE C1
SUM
SALES
DEALER_COST
BY COUNTRY
MORE
FILE C2
END
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
Yes, you can concatenate flat files C1 and C2 with the MORE command:
APP PREPENDPATH IBISAMP
-*
SET ONLINE-FMT = STANDARD
-*
TABLE FILE CAR
SUM SALES
BY COUNTRY
ON TABLE HOLD AS C1
END
-RUN
-*
TABLE FILE CAR
SUM DEALER_COST
BY COUNTRY
ON TABLE HOLD AS C2
END
-RUN
-*
DEFINE FILE C1
DEALER_COST/D7 = SALES;
END
-*
TABLE FILE C1
PRINT DEALER_COST
BY COUNTRY
ON TABLE HOLD AS TOM
MORE
FILE C2
END
-RUN
-*
TABLE FILE TOM
PRINT DEALER_COST AS 'Combo,Amount'
BY COUNTRY AS 'Country'
END
-EXIT
Combo
Country Amount
------- ------
ENGLAND 12,000
37,853
FRANCE 0
4,631
ITALY 30,200
41,235
JAPAN 78,030
5,512
W GERMANY 88,190
54,563
This message has been edited. Last edited by: David Briars,