MemCom Reference Manual > MemCom ftn Fortran API > Relational Table Manager (TB) > mcf_tb_get_key_att

Name

mcf_tb_get_key_att — Get attributes of table entry (Fortran API)

Synopsis

subroutine mcf_tb_get_key_att(rt,key,type,nel,status)
mcf_rtable rt
character*(*) key
character*4 type
integer*4 size
integer*4 status

Description

mcf_tb_inquire checks if an object key in the table identified by rt exists. If key exists, status is set to 1 and if not, status is set to 0. mcf_tb_inquire_all checks if an object key in the table identified by rt exists. If key exists, type and nel are returned and status is set to 1. If not, status is set to 0.

Parameters

rt

Relational table identifier (input).

key

Data access keyword (input). The character buffer key must be dimensioned to at least 63 characters.

type

Data type of object described by key (output). The character buffer type must be dimensioned to at least 4 characters.

size

Number of data elements of object described by key (output).

status

Status code returned (output). If key exists status is set to 1. If not, status is set to 0. type and nel then remain undefined (mcf_tb_inquire_all only).