Originally posted by: SystemAdmin
I have attached a map that uses the CONVERT function to replace all non-alphanumeric characters with spaces. I was only able to attach one file so I attaced the map.
The input file, NoPunctuationTable.txt, contains the following text: " 0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz ". Note that the numbers begin on 48th byte and the uppercase alphabet begin on the 65th byte and the lower case alphabet begins on the 97th byte. Refer to this chart:
http://www.asciitable.com/ The type tree for both the input and output should contain a BLOB text element with no initiators, size constraints or terminators.
The rule is: "=CONVERT("I'm replacing all the puntucation marks, like: commas, and 'exclamation' points with spaces! Is that OK with you?", NoPunctuationTable )"
The output is: "I m replacing all the puntucation marks like commas and exclamation points with spaces Is that OK with you "
This is probably not the ideal solution but it can work. The SUBSTITUTE could work as well.
#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender#DataExchange