×
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.
Since it is XML, why not use a parser to read it in the first place? HTTPAPI includes a port of XPAT and some sample code for parsing XML. In fact, the samples that consume a web service very likely do exactly what you'll need and will be a good basis for you.
Matt
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Wednesday, February 10, 2010 4:15 PM
To: RPG programming on the IBM i / System i
Subject: Re: Replace 1 Char with 3Char's
Jim,
Bypass that step. Instead of trying to "copy" it into a PF and then
process that with RPG I'd suggest using Scott's IFS stuff to read the file
directly. It will perform better because
1 - you won't be reading all that data twice, once to reformat it to PF
and once to post it.
2 - You'll be less tempted to use CPYFRMIMPF or CPYFRMSTMF to put it in a
PF and CPYFRMIMPF can easily be beaten performance wise by using Scott's
API's. Try running CPYFRMIMPF in debug and Oy Vey! will the underlying
sql astound you.
And if you are using any of those to process this stream file you'll
appreciate the flexibility of doing your own. However, since it's raw xml
I'm willing to wager you're not using CPYFRMIMPF but maybe CPYFRMSTMF and
flexibility is not a big concern.
However, if you're going with your original intent will %replace work?
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
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.