Gregory Simmons
Gregory Simmons is a software engineer with PC Richard & Son. He started on the IBM i platform in 1994, graduated with a degree in Computer Information Systems in 1997, and has been working on the OS/400 and IBM i platform ever since. He has been a registered instructor with the IBM Academic Initiative since 2007, holds a COMMON Application Developer certification, and was recently acknowledged with a speaker award at POWERUp23 as well as a Level 1 Contributor badge with IBM. When he’s not trying to figure out how to speed up legacy programs, he enjoys hiking, backpacking, SCUBA diving, hunting, and fishing.
-
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