Hello Forum,
Is there a general string cleansing function in parallel job like OCONV-MCP to remove all non-printable characters? The only way I can figure to do this is to explicitly list all the characters you wish to translate in a convert function call.
Any other suggestions?
Thanks,
Greg
OCONV-MCP replacement for PX
Moderators: chulett, rschirm, roy
No builtin PX equivalent to the "MCP" code of Iconv/Oconv.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Greg,
Don't know if you found a decent solution to your issue, but you could use the following unix command -
This will strip all non-printable characters from a string and I would think it would be much more efficient than throttling down to a sequential flow using the BASIC transformer.
I created a wrapper which invoked this from a stream and it works as advertised.
Try not to develop in terms of mixing server and parallel processes (unless absolutely necessary), but to separate these processes.
Don't know if you found a decent solution to your issue, but you could use the following unix command -
Code: Select all
tr -cd '\11\12\40-\176' < $INPUT_FILE > $OUTPUT_FILE
I created a wrapper which invoked this from a stream and it works as advertised.
Try not to develop in terms of mixing server and parallel processes (unless absolutely necessary), but to separate these processes.
Mike Hester
mhester@petra-ps.com
mhester@petra-ps.com
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Ray,
You are correct, but it's a bit tougher.That approach would probably also work in an External Filter stage.
Mike Hester
mhester@petra-ps.com
mhester@petra-ps.com
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Duzn't matta!
Parallel jobs on Windows actually run on MKS Toolkit (a UNIX emulator). So you have all the UNIX shell functionality you need. The tr command is definitely available.
Parallel jobs on Windows actually run on MKS Toolkit (a UNIX emulator). So you have all the UNIX shell functionality you need. The tr command is definitely available.
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.