D_SETFREE

SUMMARY
d_recfree(SET [,dbn])
int SET;
int dbn;

ARGUMENTS
SET The set type for which thea read or exclusive lock is to be
freed.

dbn (optional) The number of the database containing the record.

DESCRIPTION
Function d_setfree frees the read or exclusively locked data files
associates set type SET. This function can only be executed outside of a
transaction.Inside transaction, lock are freed by functions d_trend or
d_trabort.
This function is present in the single-user version of db_VISTA, but
performs no action. This allows multi-user applications to link with the
single-user version for operation on stand-alone computers.

CURRENCY CHANGES
None.

RETURN CODES

-2 S_INVSET Invalid set type. Probably passed a record or field
type instead of a set type.

-24 S_NOTLOCKED Set type is not locked.

-29 S_TRFREE Attempt to free a read lock inside a transaction.

EXAMPLE

char name{32]; /*author name*/
/* Print list of authors */
d_setlock(AUTHOR_LIST,"r");
for( d_findfm(AUTHOR_LIST);
db_status==S_OKAY;
d_findnm(AUTHOR_LIST))
{
d_crread(NAME,name);
printf("author: %s\n",name);
}
d_setfree(AUTHOR_LIST);