DELETEK


ANSI

 

The DELETEK instruction removes ISAM or AAM keys without deleting the text record. This instruction is primarily used when maintaining an alternate index. The instruction uses the following formats:

 

(1)

[label]

DELETEK

{ifile},{key}

(2)

[label]

DELETEK

{afile}

 

Where:

label

Optional. A Program Execution Label.

ifile

Required. A previously defined and opened IFILE variable from which the key is removed.

key

Required. A previously defined Character String Variable containing the key.

afile

Required. A previously defined and opened AFILE variable from which the key is removed.

Flags Affected: OVER

Note the following:

  1. The rules for DELETE apply except only the key is deleted. The text record remains intact.

  2. If the specified key is not found, the OVER Condition Flag is set to TRUE.

  3. When format (2) is used, the keys for the current record are deleted from the AFILE.

 

 

See Also: INSERT (IFILE), Disk I/O Instructions

 



PL/B Language Reference DELETEDK ERASE