This routine terminates RZ access to the file referenced by the specified top directory CHDIR, and issues a FORTRAN or C close for the associated file. For this reason, it should be used in preference to the routine RZEND.
A direct access file, identified by a top directory name, is closed by a call to RZEND. The directories present in memory, when they have been changed, are copied to the file and then deleted from memory, else the directories in memory are simply deleted. Note that a FORTRAN close statment must be provided by the user for the associated file.