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     [SHARING] Advice for mapping Large Flat File

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SHARING] Advice for mapping Large Flat File
 Login/Join
 
Gold member
posted
Just wanted to throw this out there to see what is the best path to take in mapping a large flat file for the next few months before using proper ETL and DB2 table.

I got this 20million flat file which looks like this:

MONTH BAL_TYPE ACCT_TERM GL_NO AMOUNT
201203 FTP A123245 988765 100.00
201202 FTP A123245 988700 100.00
201203 ATP B345665 456234 200.00
201202 PTP B345665 456000 200.00


Business provided the requirement for a mapping document to group by "Product"

Mapping Table:
PRODUCT BAL_TYPE ACCT_TERM GL_NO
FIXED_MTG_5YRS FTP A12345 988765
FIXED_MTG_5YRS FTP A12345 988700
VARIAB_MTG_5YRS ATP B345665 456234
VARIAB_MTG_5YRS ATP B345665 456000

The mapping table got 250 different Products


Solution #1
Create Unique Key in the large flat file and mapping table called:

UNIQ_PROD/A50 = BAL_TYPE ||ACCT_TERM ||GL_NO;

Index the Unique Key in the Mapping table and Join to the Flat File.

Solution #2
Since the data is on mvs can we use SYSIN SORT CARD to merge mapping table to the flat file?

something like this:
Sort fields=(21,4,CH,A,29,2,PD,A)

I'm not an expert in using SORT CARD but wonder if anyone here have experience with it?

Just looking for the most optimal solution.

Any suggestion is welcome.

Thanks,

Lurker

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


WF 8105M
- Portal, Dashboard
- Rcaster, Data Migrator
- Windows 2012 Client Server
- Dev/App Studio 8105
- Data: SQL, Oracle, Neteeza,MVS
 
Posts: 78 | Registered: October 24, 2006Report This Post
Virtuoso
posted Hide Post
I would use #1, but with soft catenation (| rather than ||) in the Define for the compound key.

The compound field must be stored in the reference file, and indexed. You need not store it in the "large" file -- just define it, and issue a define-based Join to the reference file.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 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     [SHARING] Advice for mapping Large Flat File

Copyright © 1996-2020 Information Builders