Hi,
My Input file has some special characters. I have used the HEX editor to find out them and they are (OD OA pairs) and HEX (00).
I want to replace them with the spaces.
I have gone thru the forum and found some solutions like
1). EReplace and Iconv with MCP
2). EReplace( string,char(13):char(10)," ")
3) Convert function.
Please let me know which one would be the best solution.
Any input would be highly appreciated.
Special Characters
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Make the record delimiter "DOS format" might work. Or are the 0D0A pairs within quoted strings?
Otherwise, to convert the NUL characters to space, define a stage variable svNUL initialized to Char(0) then:
To replace the CRLF pairs, define a stage variable svCRLF initialized to Char(13):Char(10) then:
Otherwise, to convert the NUL characters to space, define a stage variable svNUL initialized to Char(0) then:
Code: Select all
Convert(svNUL, " ", InLink.TheColumn)
Code: Select all
Ereplace(InLink.TheField, svCRLF, " ", -1, 0)
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.