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:
|
|
|
|
|
|
|
|
|
|
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:
The rules for DELETE apply except only the key is deleted. The text record remains intact.
If the specified key is not found, the OVER Condition Flag is set to TRUE.
When format (2) is used, the keys for the current record are deleted from the AFILE.
See Also: INSERT (IFILE), Disk I/O Instructions
![]() |