Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] Joining Files with common and unique records

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved] Joining Files with common and unique records
 Login/Join
 
Member
posted
Please help

I'm trying to join two Parts List that have both common and unique records and print all parts and list qty from the respective source.

Below are the 3 Source Files, each followed by the columns of interest.

Work Order Header File
->Work Order #
->Manufactured Item

Bill Of Material (BOM) File
->Parts List

Work Order Detail File
->Parts List

Below is how I whant the report to show:

ITEM BOM Qty WOQty
Part1 21 21
Part2 14 16
Part3 (Not in file) 5
Part4 21 (Not in file)

This message has been edited. Last edited by: Daren,


Web Focus 7.6.5
JDE World
 
Posts: 20 | Registered: July 29, 2008Report This Post
Virtuoso
posted Hide Post
Do you have anything in common to join the Work Order File to the other two?


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Virtuoso
posted Hide Post
what other fields do the tables have?
For instance: does the work order detail list have the work order # ?

If you post your examples or coding please put between
 [code] 
[/code]
it makes it better readable!




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Member
posted Hide Post
It is easy to join the files.

The Work Order Header file is selected to print/hold only one work order number. It holds the Manufacured Item.

The Bill Of Material file is linked to the Work Order Header file by Manufactured Item. It prints/holds all Parts.

The Work Order Detail file is joined to the Work Order Header file by the Work Order Number. It prints/holds all parts.

My goal is to print a comparison between the Bill Parts and the Parts on the Work Order Parts List. I want to list the part in one row whether it is in the BOM or WO Parts List or Both only once.


I pasted the simplified code below. The problem is it is excluding the items on the WO Detail Parts List that are not on the BOM.

Thanks for the help!

[code]
SET EMPTYREPORT = ON
SET ALL = PASS
TABLE FILE F4801
PRINT
WADOCO
WALITM
WHERE WADOCO EQ &WO;
ON TABLE HOLD AS HWOHEADER FORMAT FOCUS INDEX 'WADOCO'
END

JOIN
HWOHEADER.SEG01.WALITM IN HWOHEADER TO MULTIPLE F3002.F3002.IXKITL IN F3002 AS J0
END

TABLE FILE HWOHEADER
SUM
IXQNTY
BY IXLITM
ON TABLE HOLD AS HBOMQTY FORMAT FOCUS INDEX 'IXLITM'
END

TABLE FILE F3111
SUM
WMTQTY
BY WMCPIL
WHERE WMDOCO EQ '&WO';
ON TABLE HOLD AS HWOPARTS FORMAT FOCUS INDEX 'WMCPIL'
END

JOIN
HBOMQTY.SEG01.IXLITM IN HBOMQTY TO UNIQUE HWOPARTS.SEG01.WMCPIL IN HWOPARTS
AS J2
END
JOIN
HWOPARTS.SEG01.WMCPIT AND HWOPARTS.SEG01.WMDOCO IN HBOMQTY TO MULTIPLE
F553118.F553118.WNITM AND F553118.F553118.WNDOCO IN F553118 AS J1
END

JOIN
HWOPARTS.SEG01.WMCPIT AND HWOPARTS.SEG01.WMMCU IN HBOMQTY TO UNIQUE
F4102.F4102.IBITM AND F4102.F4102.IBMCU IN F4102 AS J3
END

TABLE FILE HBOMQTY
SUM
IXQNTY AS 'BOM,Qty'
WMUORG/P6 AS 'WO,Qty'
BY WMCPIL NOPRINT
END


Web Focus 7.6.5
JDE World
 
Posts: 20 | Registered: July 29, 2008Report This Post
<JG>
posted
Use MATCH not JOIN

HOLD OLD-OR-NEW
 
Report This Post
Member
posted Hide Post
JG,

It was my first time to use Match and it worked.

Thanks!


Web Focus 7.6.5
JDE World
 
Posts: 20 | Registered: July 29, 2008Report This Post
Virtuoso
posted Hide Post
Darin please Edit your post and put [Solved] in the Title.

Thanks
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] Joining Files with common and unique records

Copyright © 1996-2020 Information Builders