Guru: Speeding Up RPG By Reducing I/O Operations, Part 1
May 8, 2023 Gregory Simmons
Perhaps one of the easiest ways to speed up an RPG program is to reduce the number of I/O operations it needs to perform. In this article let’s explore one simple method for moving toward dataset processing.
Here I have a simple RPG program. Okay, admittedly, we don’t often get to write “simple” RPG programs, but for this example, I have stripped the RPG program down to just the read loop so I can demonstrate the conversion.
1 Dcl-f AcctMstr Usage(*Input) Keyed; 2 Dcl-pr entry ExtPgm('RPGRPT1'); 3 n Packed(3:0); 4 End-Pr; 5 Dcl-pi entry; 6 inBranch Packed(3:0); 7 End-pi; 8… Read more