next up previous contents index
Next: Save modified directories Up: Description of user Previous: Set the logging

Close a direct access file

CALL RZCLOS (CHDIR,CHOPT)

CHDIR
Character variable specifying the name of the top directory of the file to be closed.
CHOPT
Character variable specifying the options required.
' '
default, close file specified by the variable CHDIR
'A'
close all files - CHDIR not used

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.

CALL RZEND (CHDIR)

CHDIR
Character variable specifying the name of the top directory of the file to be closed.

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.


Janne Saarela
Mon May 15 08:34:47 METDST 1995