I have successfully coded dynamic file allocation in a COBOL program.  My problem is this: I need to dynamically allocate the file in a central subroutine and then be able to open and close that file from the program that calls the subroutine to allocate the file.  Is this possible and if so, how?