× 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.



Will I think I'll use Joe's idea. Not that most of the other's don't
have merit, but I'm not sure at this point I want to rewrite the rest of
the job flow and programs to get everything out of the IFS.

As for replace, yes it would work, but not that I could see on streaming
data. I would have to manage the blocking of the file into some (even
though it could be big) field and still get it back. So I might as well
do it as I go and not worry about size (doesn't matter any way ;-) ). I
just had not thought of doing this one IFS file to another (thanks again
Joe!).

Thanks for your ideas,
-- Jim

-----Original Message-----
From: Lowary, Jim
Sent: Wednesday, February 10, 2010 2:25 PM
To: 'rpg400-l@xxxxxxxxxxxx'
Subject: Replace 1 Char with 3Char's

Does anyone know of away (other than brute force) to replace one
Character with 3 Characters?

This is an XML file that I am getting via the httpapi via http_url_post
function [Thanks Scott!], in an RPG program. The program I'm trying to
replace is a Delphi program that took a block of data and did a replace
in each block of data with some Delphi function that would replace "<"
with 'CRLF' +"<" so that it could be later copied into a fix length
record format to process on the iSeries. (the xml is all one long
string, yuck!)

Only way I can think of is with two user spaces and using pointers, etc.
I'm so close to shoving one more Delphi program out the door and getting
this entirely a iSeries function. I just had to ask before I beat my
head on a wall coming up with something to do this.

Thanks,
-- Jim Lowary (looking for a soft wall!)


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.