Home | Previous Page | Next Page   SQL for the Optical Subsystem >

RELEASE (+, DB-Access, ESQL/C)

Use the RELEASE statement to cancel a reserve request for an optical volume.

Syntax

Read syntax diagramSkip visual syntax diagram>>-RELEASE--+-'family_name'---------------+--volume_number-----><
            |                      (1)    |
            +-family-name variable--------+
            |                        (2)  |
            '-procedurename variable------'
 
Notes:
  1. ESQL/C Only
  2. SPL Only
Element Purpose Restrictions Syntax
family_name A quoted-string constant that specifies a family name in the optical-storage subsystem Must be an existing family name. Quoted String segment; see the IBM Informix: Guide to SQL Syntax.
family-name variable A CHARACTER or VARCHAR host variable that contains a family name Must be an existing variable name. Variable name must conform to language-specific rules for variable names.
procedure-name variable The name of a variable defined in an SPL routine Must be defined in the procedure and valid in the statement block. Identifier segment; see the IBM Informix: Guide to SQL Syntax.
volume_
number
The volume being released; specified as an integer Must be reserved and mounted correctly. Number must be an integer.

Usage

Each time that a RELEASE statement is executed, the value 1 is subtracted from the reserve counter for the volume. When the value of the reserve counter is zero, you can unmount the volume.

The volume specified in the RELEASE statement must be reserved and the platter that contains the volume must be mounted currently. An error is returned if the platter is not mounted or if the value of the reserve counter for the volume is zero.

You can issue multiple reserve requests, but you must release each one before you can remove the volume from the optical drive.

The following example releases a reservation for volume 013 in the catalog_1991 optical family:

RELEASE 'catalog_1991' 013

Related Information

Related statements: RESERVE

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]