DAT_REFCT

Enquire the reference count for a container file

Description:

The routine returns a count of the number of “primary” locators associated with an HDS container file (its reference count). The file will remain open for as long as this number is greater than zero.

Invocation

CALL DAT_REFCT( LOC, REFCT, STATUS )

Arguments

LOC = CHARACTER  ( DAT__SZLOC ) (Given)
Locator associated with any object in the container file.
REFCT = INTEGER (Returned)
Number of primary locators currently associated with the file.
STATUS = INTEGER (Given and Returned)
The global status.

Notes:

This routine may be used to determine whether annulling a primary locator will cause a container file to be closed (also see the routine DAT_PRMRY).