next up previous contents index
Next: Internal RZ routines Up: Description of user Previous: Copy information from

Retrieve statistics about a given RZ directory

CALL RZSTAT (CHPATH,NLEVELS,CHOPT)

CHPATH
The pathname of the directory about which information has to be provided.
NLEVELS
Number of levels below CHPATH about which space information has to be accumulated.
CHOPT
Character variable specifying the options desired
' '
Print the statistics (default)
'Q'
Return the statistics in the user communication vector IQUEST

Routine RZSTAT provides information about the usage statistics of an RZ direct access file associated with a given directory, as specified by its pathname. The routine can be used in two ways, namely to print the global statistics at the end of a run, or to retrieve, at any given moment, useful data about the space usage (e.g. to verify whether there is still enough space left to add another record).

If option 'Q' is specified, the IQUEST vector contains on return:

IQUEST(11)
number of records used
IQUEST(12)
number of words used


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