Hi all,
i have to splite Header from the file and this Header i have to send onther file
Thanx inadance
How to splite Header from the file
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 503
- Joined: Wed Jun 29, 2005 8:14 am
Can you mention what is the problem you are facing when trying to do what gateleys has suggested? Is your input file a fixedwidth file? Also, since you need to send the header data to a seperate file, all would need do it is to map three columns in question to three columns onto the file in the Transformer Stage or concatenate those three columns into a single column based upon your requirement.
Kris
Where's the "Any" key?-Homer Simpson
Where's the "Any" key?-Homer Simpson
-
- Participant
- Posts: 437
- Joined: Fri Oct 15, 2004 6:13 am
- Location: Pune, India
If your file has different format of the header and other records i.e. metadata for header and other records - then you might have to use a bit diff approach.
In this case, you can read the whole line in a single varchar column and then as suggested separate out header and other records based on INROWNUM. Then after this you can use row splitter to split multiple cols from single col.
In this case, you can read the whole line in a single varchar column and then as suggested separate out header and other records based on INROWNUM. Then after this you can use row splitter to split multiple cols from single col.
Regards,
S. Kirtikumar.
S. Kirtikumar.
-
- Premium Member
- Posts: 503
- Joined: Wed Jun 29, 2005 8:14 am