even tough RPG is ill-reputed as an old static programming language this looks somehow like any other high level language and anyone should understand what's going on here without trying to figure out what that strange INSPECT does
Back in the late 80's early 90's, I was a co-op for IBM. I wrote an RPG program to rearrange some data file. Because of scope, the program had to be reviewed by a senior programmer.
"This is just a start. Where is the rest of it. Do you need help?"
"No. It is complete. Sample input and output files right next to it. I used the cycle"
"The cycle still works?!"
I had learned RPG II in HS. The cycle is all that was needed. He showed that program to every programmer that walked into his office.
The deal it that it all keeps working.