ARGUMENTS dbn (optional)The number of the database containing the record
DESCRIPTION This function deletes the current record from the database.All keys associated with the record are removed from their respective key file and the record is marked deleted and placed on the deleted chain for the file in which it resides. The record must have been previously removed from all sets of which it is an owner or memeber.
CURRENCY CHANGES curr-rec=NULL_DBA;
RETURN CODES
-7 S_NORC The current record is null.
-12 S_HASMEM Current record is an owner of more non-empty sets.You must first disconect all members from all sets owned by the current record.
-13 S_ISMEM Current record is a member of one or more sets.You must first disconect the record from all sets in which it is a member.
-22 S_DELSYS The current record is the system record.You are not aloowed to delete the system record.
-24 S_NOTLOCKED Record type containing field is not locked
-27 S_TRNOTACT Transaction not active.In shared mode,changes can only be made from within a transaction.
EXAMPLE ..... /* disconect and delete abstract */ d_setom(ABSTRACT,HAS_PUBLISHED); while (d_findfm(ABSTRACT)==S_OKAY) { d_discon(ABSTRACT); d_delete(); }