The DELETE macro command deletes lines from the
data you are editing.
Syntax

Macro command syntax
>>-ISREDIT--DELETE---------------------------------------------->
>--+-ALL--+-X--+--+------------------------+-----+-------------><
| '-NX-' +-linenum1--+----------+-+ |
| | '-linenum2-' | |
| '-labela--+--------+-----' |
| '-labelb-' |
+-+-----+--+-X--+--+-linenum1--+----------+-+-+
| '-ALL-' '-NX-' | '-linenum2-' | |
| '-labela--+--------+-----' |
| '-labelb-' |
'-+-linenum1--+----------+-+------------------'
| '-linenum2-' |
'-labela--+--------+-----'
'-labelb-'
- ALL
- Specifies that all selected lines are deleted. The DELETE command,
unlike FIND, CHANGE, and EXCLUDE, does not use NEXT, FIRST, PREV,
or LAST. ALL is required to emphasize that NEXT is not the default.
- X
- Restricts the lines deleted to those that are excluded.
- NX
- Restricts the lines deleted to those that are not excluded.
- labela, labelb
- Labels identifying the start
and end of the group of lines to be deleted. To delete one line, enter
one label.
- linenum1
- Relative
line number identifying a line, or the start of a group of lines,
to be deleted.
- linenum2
- Relative
line number identifying the end of a group of lines to be deleted.
Description
DELETE can specify a single
line or a range of lines. It can limit the lines to be deleted to
all excluded or non-excluded lines in the data, or to all excluded
or non-excluded lines within a line pointer range.
Return codes
- 0
- Normal (lines deleted successfully)
- 4
- No lines deleted
- 8
- No standard records exist
- 12
- Invalid line number
- 20
- Severe error
Examples
To delete all non-excluded lines:
ISREDIT DELETE ALL NX
To delete all
lines between labels .A and .B with a blank in column 1:
ISREDIT RESET X .A .B
ISREDIT EXCLUDE ALL " " 1 .A .B
ISREDIT DELETE ALL X .A .B
To delete the last line
of data in the current data set:
ISREDIT DELETE .ZLAST
To
delete the first 10 lines of data in the current data set:
ISREDIT DELETE 1 10