|
ETL-Tools.Info
|
Business Intelligence - Data warehousing - ETL |
|
Processing a header and trailer textfileGoal
Process a text file which contains records arranged in blocks consisting of a header record, details (items, body) and a trailer. The aim is to normalize records and load them into a relational database structure. Scenario overview and details
Typically, header and item processing needs to be implemented when processing files that origin from mainframe systems, and also EDI transmission files, SWIFT Schemas, EPIC files.
- A header starts with a letter H and then contains an invoice number, a customer number, a date and invoice currency - Every item starts with a letter I which is followed by product ID, product age, quantity and net value - The trailer starts with a T and contains two values which act as a checksum: the total number of invoice lines and a total net value. Sample header and trailer input textfile:
![]() Output data: Problem solution implemented in various ETL tools:
|
|
All Rights Reserved |
Add a comment to this article