RPG Sorting and Searching: A 7.1 Update
September 29, 2010 Susan Gantner
Back in 2008, I wrote a tip about using SORTA and group fields in RPG to easily sort array data, such as subfile data. Array Data Structures existed back when I wrote the original tip, but SORTA was not supported at that time. So I was forced to use the less-than-obvious group fields technique described in that tip. With new support in RPG 7.1, things have changed, so I’m revisiting the example with an updated look. The example program that I used before was very simple to retrofit to utilize an actual Array Data Structure. The definition of the array |