File sharing under PL/I multitasking

Files can be opened by COBOL programs that are running in the main task or in a subtask. However, when the task terminates, all open files, external and non-external, defined in COBOL programs within the task, are closed.