DAT_PRMRY

Set or enquire primary/secondary locator status

Description:

The routine may be used to promote a locator to become a “primary” locator, to demote it to become a “secondary” locator, or to enquire about the primary/secondary status of a locator. It allows control over the duration for which an HDS container file remains open; each file remains open only so long as there is at least one primary locator associated with it.

Invocation

CALL DAT_PRMRY( SET, LOC, PRMRY, STATUS )

Arguments

SET = LOGICAL (Given)
If a .TRUE. value is given for this argument, then the routine will perform a “set” operation to set the primary/secondary status of a locator. Otherwise it will perform an “enquire” operation to return the value of this status without changing it.
LOC = CHARACTER  ( DAT__SZLOC ) (Given and Returned)
The locator whose primary/secondary status is to be set or enquired.
PRMRY = LOGICAL (Given and Returned)
If SET is .TRUE., then this is an input argument and specifies the new value to be set (.TRUE. for a primary locator, .FALSE. for a secondary locator). If SET is .FALSE., then this is an output argument and will return a value indicating whether or not a primary locator was supplied.
STATUS = INTEGER (Given and Returned)
The global status.

Notes: