Hi
We have Datastage server Edition in Windows PF and DB2 as Source system. In my data I have a junk field or (LineFeed character) along with data. i have tried with Trim and Ereplace functions but its not identifying the junk field in the data.
The data looks like.............
Lack of Experience Domain/Technology/Product
How do i trim that unwanted field " " from my data....
Thanks in advance for ur valuable comments
Striping Line Feed Character
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
If data is like the example you have given..means if the junk character is in between, trim wont work in that case.
If you can view your inputs in unix, you can replace those junk characters..
Hope this helps !
If you can view your inputs in unix, you can replace those junk characters..
Hope this helps !
-----------------------------------
Regards
MK
What would you attempt to do if you knew you could not fail?
-----------------------------------
Regards
MK
What would you attempt to do if you knew you could not fail?
-----------------------------------
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI
-
- Participant
- Posts: 15
- Joined: Mon Dec 21, 2009 12:49 am
- Location: India
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Become sure! Your initial post told us it was Line Feed.
(This may well be valid data. You can not unilaterally change the data. You may need to handle these charaters rather than simply eliminating them.)
(This may well be valid data. You can not unilaterally change the data. You may need to handle these charaters rather than simply eliminating them.)
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.
-
- Participant
- Posts: 81
- Joined: Tue Aug 15, 2006 8:31 am
- Location: Zürich
- Contact:
Puli,
You never explained the reason for removing the so-called junk character. Reason for having it, either.
Theres no need to remove any such characters unless it is displayed somewhere in reports. I believe, this is some kinda descriptive field.
If the above is true, purpose of ETL tool is "Data mover".
If the above is false, get in touch with DB2 DBA on why control characters are included within a field.
Coming to your problem, line feed (Newline or end-of-line aka EOL) and carriage return (CR), try to get the exact character you need to remove for that you feel junk.
Many regards,
Abhijit
You never explained the reason for removing the so-called junk character. Reason for having it, either.
Theres no need to remove any such characters unless it is displayed somewhere in reports. I believe, this is some kinda descriptive field.
If the above is true, purpose of ETL tool is "Data mover".
If the above is false, get in touch with DB2 DBA on why control characters are included within a field.
Coming to your problem, line feed (Newline or end-of-line aka EOL) and carriage return (CR), try to get the exact character you need to remove for that you feel junk.
Many regards,
Abhijit
Kind regards
Abhijit Gaikwad
Abhijit Gaikwad