How can I delete a record from an ESDS file?
-
Just go with normal delete process it will go fine.
-
Can delete only if the record is obtained by a random read.
-
Are you nuts? How can you delete a record from a ESDS file?
-
Using SORT utility
ESDS (Entry Sequenced Data Set) files do not allow record deletion - records can only be added sequentially. This is a fundamental characteristic of ESDS organization in VSAM. Normal delete processes won't work, and you cannot delete even with random reads.
An ESDS (Entry-Sequenced Data Set) in VSAM stores records in the fixed order they were written and does not support logical deletion of individual records — records can only be added at the end or updated in place, never removed. This is a structural limitation of the ESDS organization itself, unlike KSDS or RRDS which do support deletes.