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     Reading from a file : FOCUS MAINFRAME

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Reading from a file : FOCUS MAINFRAME
 Login/Join
 
Member
posted
Hi,

I have two files. One input file which is a flat file in mainframes (sequential). Second file is a FOCUS DB file. The structures of the files are

Input tile:
Project #

FOCUS FILE:
Project #
Element code
Element value

For each project # in input file there are lots of records in the FOCUS file. The output should give me all records from FOCUS file for one record in Input file. So in this case I tried to do a match

Match file Input
Print *
By project id
run
file focus
print *
by project id
after match hold as hold1 old-and-new

this query is taking very long time to execute. I am not sure whether the query is correct or not. Is there any other easy way of executing this query.

Please Help..

Note :-The FOCUS file is very very huge.

Thanks
Sandesh
 
Posts: 16 | Registered: December 20, 2005Report This Post
Expert
posted Hide Post
Sandesh, if your flat file is in project id order, then
JOIN PROJECTID IN FLATFILE TO ALL PROJECTID IN BIGFILE AS J1
now if you run some sort of query on a selected project id , you should get 1 record from a and a few zillion appropriate records from file b.
If whatever your environment is wont let you join them, then TABLE FILE FLATFILE and make it into a temporary focus file for joining..
TABLE FILE FLATFILE
PRINT interesting fields BY PROJECTID
ON TABLE HOLD AS HFRED FORMAT FOCUS INDEX PROJECTID
END
..now do the join.
and..why not flip the join around?
JOIN PROJECTID IN BIGFILE TO PROJECTID IN HFRED AS J1
depending on what your query is, this is probably the best, if your flatfile contains alphabetic descriptors, stuff that doesn't mind being repeated every time it joins up with the host, such as:
JOIN CUSTOMER IN BIGTRANSACTIONFILE TO CUSTOMER IN LITTLENAMEADDRESSFILE AS JX
Any help?
-S




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Platinum Member
posted Hide Post
Use a one-to-many join

JOIN project# in file1 TO ALL project# in file2
 
Posts: 140 | Location: Adelaide South Australia | Registered: October 27, 2006Report This Post
Member
posted Hide Post
Thaks a lot Susan and OPALTOSH.

I created a FOCUS DB file with index on PROJECT ID and then used Join with ALL option. And it worked.


Thanks
Sandesh Gadgil
 
Posts: 16 | Registered: December 20, 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     Reading from a file : FOCUS MAINFRAME

Copyright © 1996-2020 Information Builders