Eliminate redundant I/O:
If your program is reading a "primary" file and then using CHAIN (or SETLL
along with READ or READE) to randomly retrieve values from various other
"secondary" files, put a block of logic around each of the secondary I/O
operations such that it will only retrieve the value from the "secondary"
files if the key value changes.
JDE example:
(F4211 contains SDCO, which is the key for F0010)
Read I4211;
Dow not %eof( F4211 );
If SDco <> svco;
chain ( SDco ) i0010;
svco = SDco;
EndIf;
// do other stuff here...
Read I4211;
EndDo;
- sjl
"RPGLIST" wrote in message
news:mailman.7523.1357227592.10847.rpg400-l@xxxxxxxxxxxx...
I'm looking for any and all suggestions on possible ways to speed up some
programs.
The typical ones that come to mind are:
1. avoiding open and closes on files
2. Not setting LR when calling a program or procedure multiple times
3. using Data structures for block reads and writes
Any other suggestions?
This mailing list archive is Copyright 1997-2026 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.