I've got a program that outputs to two reports, a summary and a detail. Both printfiles are using the keyword usropn. I open the files at the begining of the program and I close them at the end. The files close after the totals are printed, the totals are only printed when LR is turned on. LR is only on if it's the last record. How then can I be getting an I/O error after the totals were printed? There shouldn't be anything left to write to the files.
Any help would be appriciated, I've been working on this for days.