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



Evan,

Wouldn't it better to use a Journal? That way you could not only add new records, but also deletes and updates...

Regards

Luis Rodriguez

IBM Certified Systems Expert
eServer i5 iSeries Technical Solutions


--- On Tue, 9/30/08, rpg400-l-request@xxxxxxxxxxxx <rpg400-l-request@xxxxxxxxxxxx> wrote:

RE: Re writing CL in RPGTuesday, September 30, 2008 7:38 AM
From: "Evan Harris" <>To: "'RPG programming on the AS400 / iSeries'" <rpg400-l@xxxxxxxxxxxx>




Hi Donna
<snip/>
</SNIP>
Thinking outside the square a bit, if it's a case of
needing the files
quickly at period end or minimizing downtime some other
options present
themselves:
- Add a trigger to the file so that the records get written
to BFILE when
they get added to AFILE
- Save and restore the entire file into a different library
and then delete
the records you don't want to get your BFILE

The best approach also depends on how much of AFILE ends up
in BFILE. If it
was more than 50%, then copying the entire file using
blocking and deleting
the records you don't want might be faster. SQL deletes
might be an option
here.

Food for thought, hope this helps somehow.

Regards
Evan Harris


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of donna lester
Sent: Tuesday, 30 September 2008 11:42 a.m.
To: rpg400-l@xxxxxxxxxxxx
Subject: Re writing CL in RPG

Hi
Below is my code. I am trying to replace copy commands
program by writing
RPGLE.
Is this a good design , will this run faster? I would like
to know your
opinions and suggestions.
Thank you for your time. The number of records in AFILE
usually more than a
million.

<snip/>






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.