AnsweredAssumed Answered

COBOL question

Question asked by Kay.Rozeboom on Apr 18, 2013
Latest reply on Apr 22, 2013 by Kay.Rozeboom
I need to clean up a large string of data so that it does not contain any non-displayable characters. The goal is to make it XML-compatible. It's more than just alpha and numeric - I need to allow all displayable characters, and change the rest to spaces.

This is in an on-line program, so I am concerned about performance. I will need to compare each byte to the list of 95 allowable characters. What would be the most efficient way to do this: table lookup, large 88-level field, other?

We had discussed converting the data to base 64 while in flight, which would get it through the XML generator and parser on both ends. But that doesn't really clean it up.

All suggestions welcome!

Kay Rozeboom
Information Technology Enterprise
Iowa Department of Administrative Services
Telephone: 515.281.6139 Fax: 515.281.6137
Email: Kay.Rozeboom@iowa.gov

Outcomes