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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Join 2 focus files
 Login/Join
 
Silver Member
posted
We are working on a project and within that project we are generating 2 foucs files. We tried to join them using the join tool in the procedure viewer but we cannot join the 2 focus files.

I hope somebody can teach us how to join these 2 files.

Below are the fiels that we tried to join
File 1:
FILENAME=ABCHDATA, SUFFIX=FOC , $
SEGMENT=SEG01, SEGTYPE=S1, $
FIELDNAME=DDAITX, ALIAS=E01, USAGE=A15,
TITLE='Item number', $
FIELDNAME=DDARQT, ALIAS=E02, USAGE=P12.3,
TITLE='Shipped,quantity', $
FIELDNAME=DDDUVA, ALIAS=E03, USAGE=P17.3,
TITLE='LC - net,sales amount', $
FIELDNAME=AVE, ALIAS=E04, USAGE=D12.2,
TITLE='AVE,AvePrice', $

File2:
FILENAME=abcdata, SUFFIX=FOC , $
SEGMENT=SEG01, SEGTYPE=S2, $
FIELDNAME=DDAITX, ALIAS=E01, USAGE=A15,
TITLE='Item number', $
FIELDNAME=yymm, ALIAS=E02, USAGE=I4, $
FIELDNAME=DDARQT, ALIAS=E03, USAGE=P12.3,
TITLE='Shipped,quantity', $
FIELDNAME=DDDUVA, ALIAS=E04, USAGE=P17.3,
TITLE='LC - net,sales amount', $

Thanks a lot in advance!


WebFocus 762 AS400 / DB2
 
Posts: 34 | Location: Winnipeg, MB | Registered: January 23, 2008Report This Post
Virtuoso
posted Hide Post
I believe you need an index field on the files in order to do a join.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Expert
posted Hide Post
You only need an index on the field you are joining to in the target. The host file does not need an index.

If you currently do not have one on the target, assuming that is File2 in your post, then look up the REBUILD command. You will have to rebuild your current data into another file whose master has an INDEX=I for the DDAITX field.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Virtuoso
posted Hide Post
From the look of it, I suspect that you created thesse focus files using the technique ON TABLE HOLD FORMAT FOCUS. Be advised that you can also create an index in that same command: ON TABLE HOLD FORMAT FOCUS INDEX DDAITX. That way the file you created will be accessible using the join tool and will be joinable.

Hope this helps ....


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Silver Member
posted Hide Post
quote:
join tool and

Guys,

Thank you very much for the information that you shared....

Noel


WebFocus 762 AS400 / DB2
 
Posts: 34 | Location: Winnipeg, MB | Registered: January 23, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders