DEL Delete Characters

DEL [n], [:col:] [ len]

Beginning with the first record displayed, the specified column range in n records is erased. The length of the records is reduced accordingly.

n Number of records: 1 <= n <= 99999.

The character '$' instead of a number n indicates the highest possible number 99999

Standard: n =1. The deletion is made from the first displayed record only.

:col: 1 <= col <= 32000 | col = $  (End of record).

first column to be deleted. If DEL..,:$:len is specified, the column range is deleted from the end of the record to the left, up to the length specified.

Standard: The area immediately to the right of the ISAM key is deleted (column :9: for files with KEYPOS=5 and KEYLEN=8).

len Length of the column range to be deleted from the specified start column col, or from the end of the record to the left (:$:).

Standard: len = 1.

Examples:

DEL 9999,:500:10

The 10 characters from column 50 to 59 in 9999 records (or to the end of the file) from the first record displayed are deleted.

DEL :$:10

The last 10 characters of the first record displayed are deleted.