ADD [ HPTOOLSET XL Reference Manual ] MPE/iX 5.0 Documentation
HPTOOLSET XL Reference Manual
ADD
Enables you to add text to the file you are currently editing.
Syntax
A[DD] [line number] [BY increment]
Parameters
Line Number Allows you to insert text at a specified place in your
file. Defaults to LAST if you do not include a line
number.
BY Increment Allows you to indicate an increment for the lines you
are adding.
Description
Text can be added at a specific line or, if no line number is specified,
at the end of your file (default). If the file you are adding to is
empty, you will be prompted with the first line number. A new line
number will be displayed after each carriage return.
Before starting the add, the line prior to your addition will be
displayed on your screen. You will be prompted with the next line number
and may add text at that point. Lines are added according to the
particular increment value you have indicated. You can define a default
increment in the SET EDIT menu. When adding between existing lines of
text, that default may be overridden with a smaller number to allow more
lines to be added. The text you add can only be input from $STDIN and
not from an XEQ file or a command list. When you enter Add Mode, any
pending XEQ files or command lists will be terminated.
To end Add mode, press [[CONTROL]]Y, enter a double slash (//), or press
any function key. When Add mode is ended you are in Command mode.
When you are adding lines, TOOLSET/XL will not recognize lines added with
your screen edit keys. Text added in this way will be entered at the
next add line after you press the return key.
MPE/iX 5.0 Documentation