DELETE [ HP RPG/XL Utilities-Part 2 RISE ] MPE/iX 5.0 Documentation
HP RPG/XL Utilities-Part 2 RISE
DELETE
DELETE enables you to delete lines from a work file.
Form
D[ELETE] lb[/le]
Parameter Explanation
lb The first or only line number where you wish to start
your deletion.
le The last line you are deleting.
Purpose
The DELETE command is used to delete a line or range of lines from a work
file. Note: when in Block Mode, you should have the sequence numbers on
the screen so that you can see the sequence numbers of the lines you are
deleting. Use special function key F-3 to display the numbers. Do not
use the RPG line numbers to establish a line range for deletions.
Related Commands
The UNDEL command restores lines that were mistakenly deleted. Under
MODIFY, the Delete subcommand interactively deletes characters within a
line.
Execution mode: Line or Block.
Record pointer: At the line following the last deleted line.
Control Y: Stops the listing of deleted lines. Does not stop
the deletion.
Examples
The following are legal abbreviations which may be used with the DELETE
command and its parameters:
D10/50 Delete lines 10 through 50.
D10 Delete line 10.
DELE A Delete all lines in the file.
In the example, an error is produced when an attempt to delete
nonexistent lines is made (1).
A second error occurs when ALL is misspelled (2). A third results from
an unnecessary character entered following last line (3).
Finally, those lines copied to the end of SIMCAL in the COPY example
above are deleted by a legal command, and the results are displayed (4).
>
>
(1) >DELETE 200/300
Error 81: Range is empty.
(2) >D ALLL
^
Error 67: Syntax error on ALL option.
(3) >D F/LT
^
Error 71: Syntax error on Last.
(4) >D39/LAST
39 00011H
SIMCAL
40 00012FINPUT IP F 72 DISK
41 00013FOUTPUT O F 72 DISK
42 00014IINPUT AA 01 1 CA
43 00015I OR 02 1 CS
Delete completed.
>
MPE/iX 5.0 Documentation