When the DELETE statement is executed, the associated file must be open in I-O mode.
After successful execution of a DELETE statement, the record is logically removed from the file and can no longer be accessed. Execution of the DELETE statement does not affect the contents of the record area associated with the file-name.
If you specified the FILE STATUS clause in the File-Control entry, the associated status key is updated when the DELETE statement is executed.
The file position indicator is not affected by the processing of the DELETE statement.
->->---DELETE file-name----*--------*-------------------------> *-RECORD-* ->---*--------------------------------*----------------------> *-FORMAT-*----*-*-identifier-1-*-* *-IS-* *-literal-1----* ->---*-------------------------------------------------*-----> *-INVALID---*-----*---imperative-statement-1------* *-KEY-* ->---*-------------------------------------------------*-----> *-NOT INVALID---*-----*---imperative-statement-2--* *-KEY-* ->---*------------*------------------------------------------><- *-END-DELETE-*
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.