DtvLong dal_dbi_chk_elm (idn, tab)

Checks whether the record wit the ident number passed exists in the passed table or whether it is temporarily deleted.

Input Parameters Significance
DtvLong idn ident number of the records
char *tab name of the table of the record

Output Parameters Significance
no -

Return Code Significance
0 record exists in table
1 record in table temporarily deleted
2 record does not exist in table
-1 data base error reading the table entries

If you manipulate records in DataView tables using userexits, you should execute an existence check using this function prior to the transaction itself. In a multi-User environment DataView can not guarantee that a record has not been deleted by another user.