× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Yes the sed looked interesting and I got it to work more or less, and
since I couldn't find any documentation on it thru Google (maybe I was
going about that wrong), I had to go another route. I couldn't get the
right codepage and the "\r\n" that Dennis had in the sed command gave me
a "r" and "n" in the file (maybe that to, was codepage related), and
didn't have time to chase it down.

As to putting the XML in a PF, yes not the best way to do it. But the
rest of the application already exists and I was not given the time to
rewrite it. So I just remove the shelling out to the PC Delphi program
that sends and receives the XML files and had a RPGLE program do that
with the help of your httpapi's and IFS functions let it go at that, at
least that way it is all on the iSeries. Not pretty (or even best
practices) but it should work.

----------------------------------------------------------------------

message: 1
date: Wed, 10 Feb 2010 20:16:36 -0600
from: Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>
subject: Re: Replace 1 Char with 3Char's

I'm with Dennis. Use sed. This could hardly be easier than with sed.

Though, I personally think it's an idiotic thing to do to begin with.
You should never be putting an XML file into a PF to begin with. What's

stopping you from processing the XML straight from the IFS? (That is,
after all, the normal way to process XML!)



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.