Setting CLOSE_ON_EXIT to 1 will cause all non-print files to be closed upon EXIT PROGRAM. That's the effect. Are there also side effects? I'm not sure. It could be that if a file were shared by more than one program (EXTERNAL?) you would not want the EXIT of program A to close the file that is still in use by program B. An option to dump a list of still-open files when a program exits sounds like a useful enhancement request.
↧