Hi,
I had a requirement, where my source is a sequential file and it is pipe delimited. In source file description column has a value with pipe.
for example : second_column has value car|care
record looks like this
1|car|care|UK
where car|care is a single column value.
Problem here is when it is reading it is treated as two separate values, where as it should be a single column value.
ie first_column = 1
second_column = car|care
third_column = UK
Looking for a solution.
Thanks in Advance.
Issue with pipe delimeter
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
There isn't one unless each string field is quoted.
You can read the entire line as a single string and parse it according to your own rules, for example in a Transfomer stage.
This will actually give improved performance for large volumes because your parsing is being performed in parallel rather than sequentially.
You can read the entire line as a single string and parse it according to your own rules, for example in a Transfomer stage.
This will actually give improved performance for large volumes because your parsing is being performed in parallel rather than sequentially.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.