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 currently joining FileA to the Customer File to pick up the customer name. I am doing an outer join. There can be multiple customer records per customer (i.e. a customer in multiple companies). So, within the TABLE PRINT command, I am selecting one company only on the customer file, with a WHERE clause. In one particular case, the customer record doesn't exist at all and because of the WHERE clause, transactions from File A are getting omitted. How can I pick up all the transactions and one customer record only per transaction??
I thought I'd just add, I've also tried SET MULTIPATH = SIMPLE, but none of it seems to make much difference - the report still omits the transactions where the customer doesn't exist on the customer file!
I tried adding the ALL in my join statement, but unfortunately it still didn't select transactions with a missing customer number on the customer file!
What sort of files on AS400? If they are DB2 or accesible via SQL then I would always suggest using SQL passthru to provide the recordset for you rather than trying to get WebFOCUS to do it for you. It can be more efficient, let alone easier in some cases.
I don't think that Version 5.3.3 has the new function within the report painter to set the type of join, otherwise an alternative would be to set a left outer join using that.
So, unless you can use SQL passthru, you are stuck with trying to achieve it in WebFOCUS.
Some example code. Note that the HOLD FORMAT FOCUS file is a subset of the CAR table so that we can mimic your situation using the sample database CAR.
If you copy this code and run it, you should see that it gives you your left outer join result.
SET ASNAMES = ON
SET ALL = PASS
TABLE FILE CAR
SUM RETAIL_COST AS RCOST2
DEALER_COST AS DCOST2
BY COUNTRY
WHERE COUNTRY IN ('ENGLAND','ITALY')
ON TABLE HOLD AS MYCAR2 FORMAT FOCUS INDEX COUNTRY
END
-RUN
JOIN CLEAR *
JOIN COUNTRY IN CAR TO ALL COUNTRY IN MYCAR2 AS J1.
END
-RUN
TABLE FILE CAR
SUM RCOST
RCOST2
DCOST
DCOST2
BY COUNTRY
END
-RUN
Good luck
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Thankyou. I was coming to the conclusion that I would have to summarise my customer file first and then not worry about the WHERE clause in the TABLE PRINT statement!