I have a "page at a time" subfile and in order to store multiple pages of options I have created arrays to store the options and the PF record RRN and Key Fields. This process Stores and reloads the options seamlessly.
It all works beautifully except that the options are executed in the order they were entered rather than in Key Field order (eg. If I enter an option on the second page and then an option on the 1st page it will execute the 2nd page option first). So, I wondered about loading the options and Key Fields into a Data Structure Array and then using SORTA against the DS to put it into the desired order. Is this feasible? Any examples would be gratefully received. I've looked in the manuals and online and can't find anything that helps me in this.
RPGLE /free used.
December 22, 2011 9:36 AM
March 19, 2012 1:34 PM