|
<snip/>
Hi Donna
Thinking outside the square a bit, if it's a case of<snip/>
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.
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.