I want to load records from a file into a stem, array using execio, make changes to the array (including adding and deleting items), then rewrite the array using execio (as I would using classic Rexx on the mainframe).

Decrementing stem.0, which by convention indicates the number of items in the stem, does not seem to work; execio still writes out the original number of items.

It looks like I should be able to use the remove method to remove a stem item, but it doesn't seem to do anything; when I rewrite the stem array with execio the item I attempted to remove is written to the file.

(If execio was capable of reading from|writing to a non-stem array, this presumably would not be a problem?)