DELETE
|
Where
delete_countmust be an integer expression with a value from 1 to 255. If delete_count is not specified, a value of 1 is assumed.
Function
The DELETE statement simulates the action of the Delete key on 3270 and 5250 display terminals. The statement is valid for simulation of these terminals only. delete_count is the number of characters to be deleted beginning with the character at the cursor's current position.
Examples
text = 'This text must be deleted!!!'
cursor(index(screen,text))
/* Either one of the following DELETE statements can be used to */
/* delete this string from the screen. */
delete 28
/* The following statement has the same effect. */
delete length(text)
Note
The DELETE statement is ignored if the cursor is not currently positioned at an input field. WSim writes an informational message to the log data set if a DELETE statement is ignored.