Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Normalizing file structure

Status
Not open for further replies.

sam93

Programmer
Jul 19, 2002
65
CA
Hi,

I have a flat file with the following structure:
prod_category
prod_nbr1
prod_nbr2
prod_nbr3

Here is a sample record layout:
product_category prod_nbr1 prod_nbr2 prod_nbr3
a 1 2 3

How can I load data from this file to another flat file with the following normalized structure:
prod_category
prod_nbr

This would mean creating 3 records from the one above with the following layout:
prod_category prod_nbr
a 1
a 2
a 3

At the moment I am doing it by creating 3 instances of the target file in the mapping and loading a different product number in each of them while using the product category. Is there another way to do it?

Thanks.
 
You can use a normalizer transformation as solution to ur problem.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top