MemCom Reference Manual > MemCom (Old) Fortran77 API > Relational Table Manager Functions > deletb

Name

deletb — Delete key from table

Synopsis

subroutine deletb(key,status)
character*(*) key
integer*4 status

Description

deltb deletes all data associated to a key and removes the key from the relational table in the table buffer. The corresponding key on the database is not removed since TB works with a copy of the table in the table buffer. To remove a key from a relational table on the database, load the table (see gettab and getdes), remove the key, and store the table (see puttab and putdes). Deletion of an key automatically leads to packing the table buffer.

Parameters

key

Character string containing the name of the key (input).

status

Status code returned (output). Upon successful completion of the operation, the status value 0 is returned. A negative value is returned, if an error has been detected. A positive value is returned, if a warning has been issued. See MemCom error codes.