next up previous 225
Next: CAT_TRLSE - Release a catalogue identifier
Up: Detailed subroutine specifications
Previous: CAT_TNDNT - Get an identifier for the Nth (pre-existing) component of a given type


CAT_TOPEN - Open a catalogue and obtain an identifier to it

Description:
Open a catalogue and obtain an identifier to it.

The matrix of possibilities for STATE and MODE is:

STATE = 'NEW', then MODE = 'WRITE' is ok and MODE = 'READ' if forbidden.

STATE = 'OLD' then MODE = 'WRITE' is ok and MODE = 'READ' is ok.

Notes:

$*$ If a catalogue already exists and an attempt is made to open it with STATE = 'NEW', CAT_TOPEN will fail with an error.

$*$ If an existing catalogue is opened with STATE = 'OLD' and MODE = 'WRITE' it will be overwritten.

Invocation:
CALL CAT_TOPEN (CNAME, STATE, MODE; CI; STATUS)
Arguments:
CNAME = CHARACTER$*$($*$) (Given)
Catalogue name.
STATE = CHARACTER$*$($*$) (Given)
Required state of the catalogue. One of: NEW - A new catalogue is to be created, OLD - An existing (that is, old) catalogue is to be opened.
MODE = CHARACTER$*$($*$) (Given)
Mode in which the catalogue will be accessed. One of: READ - the catalogue may only be read from, WRITE - an new catalogue is to be written.
CI = INTEGER (Returned)
Catalogue identifier.
STATUS = INTEGER (Given and Returned)
The global status.
Copyright
Copyright (C) 1999 Central Laboratory of the Research Councils
Bugs:
None known


next up previous 225
Next: CAT_TRLSE - Release a catalogue identifier
Up: Detailed subroutine specifications
Previous: CAT_TNDNT - Get an identifier for the Nth (pre-existing) component of a given type

CAT [1ex
Starlink User Note 181
A.C. Davenhall
4th April 2001
E-mail:ussc@star.rl.ac.uk

Copyright © 2001 Council for the Central Laboratory of the Research Councils