D_SETOM

SUMMARY
d_setom(O_SET,M_SET [,dbn])
int O_SET;
int M_SET;
int dbn;

ARGUMENTS

O_SET The set type whose current owner will be assigned from the
current member of M_SET.

M_SET The set type whose current member will be become the current
owner of O_SET.

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

DESCRIPTION
This function assigns as current owner of O_SET from the current member of
M_SET. The current member of M_SET must be a legal owner of O_SET.
The current member of O_SET will become NULL_DBA.

CURRENCY CHANGES
curr_own[O_SET] = curr_mem[M_SET];
curr_mem[O_SET] = NULL_DBA;

RETURN CODES

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

-18 S_INVOWN Current member of M_SET is not legal owner of
O_SET.


EXAMPLE
/*disconect and delete interect and (possibly) key word */
d_setom(INFO_TO_KEY,HAS_PUBLISHED);
while (d_findnm(INFO_TO_KEY) == S_OKAY)
{
d_discon(INFO_TO_KEY);
d_setmr(KEY_TO_INFO);
d_discon(KEY_TO_INFO);
d_delete();
d_members(KEY_TO_INFO,&count);
if (count == 0L)
{
/* delete key word */
d_setro(KEY_TO_INFO);
d_delete();
}
}