Joined: 07 Feb 2009 Posts: 1165 Location: Vilnius, Lithuania
open file(whatever) input;
open file(whatever) output;
Or use dynamic allocation available in Enterprise PL/I.
The far bigger problem is that your dataset may suffer from integrity problems after an abend. There is no way of knowing if the last record in the dataset is actually the last record that you processed.