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

Name

attrtb — Inquire attributes of key

Synopsis

subroutine attrtb(key,type,nel,status)
character*(*) key
character*4 type
integer*4 size
integer*4 status

Description

attrtb returns the data type and the size of a key in the current relational table residing in the table buffer. If the key exists the positive number of elements is returned. If the key does not exists, the number of elements is set to 0 and the status is set to 1 (warning).

Parameters

key

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

type

Data type of key (output).

size

Size of key (output). A value of 0 is returned if the key has not been found.

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. The value 1 is returned if the key does not exist. See MemCom error codes.