HI
i am getting a flat file with too many headers
ex
empno empname
1 krish
2 chris
empno empname
3 raghu
eampno empname
4 sri
like this
can any one please tell me how to remove those headers in Ds job
Multiple Header's in Flat File
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 14
- Joined: Thu Jun 09, 2011 7:24 pm
- Location: USA
Re: Multiple Header's in Flat File
Try going into the stage and changing the reject mode.Parallel Job Developer's Guide wrote:When you are reading files, you can use a reject link as a destination for rows that do not match the expected column definitions.
Choose a job you love, and you will never have to work a day in your life. - Confucius
or, you can use filter option to remove those lines from the file:
something like this..
Code: Select all
sed '/^Empno/d'
pandeeswaran
-
- Participant
- Posts: 14
- Joined: Thu Jun 09, 2011 7:24 pm
- Location: USA