HP RPG/iX Utilities Reference Manual (30318-90006)

2- 147
Parameter Explanation
lb The line number where youwish to start adding lines. If not specified, adding begins after the
last line in the work file. If "lb" exists in the work file, RISE will first display the existing
source record at "lb" and prompt you with a sequence number immediately following "lb".
BY inc Increment by which you wish to add lines. If omitted the current default is used.
^^ Your control of the RPG Rec ord Specification forms. By itself "^^" homes the cursor and
clears the screen before you begin adding lines. The "^^" option and its parameters may be
enteredwhileinADDmodeatthestart ofanewlinetochangetheRPGRecordSpecification
form or the REPEAT option. (See R [n] below.)
form Additionally displays the RPG Record Specification form type you designate. "form" may be
H,F,E,L,I,C,O, or CO[L].
Rn The REPEAT command homes the cursor and clears the screen of all but the Record Specifi-
cation form or column indicator after your have entered "n" number of lines. If "n" is omitted
or "n" equals zero, the auto repeat is turned off.
Note: REPEAT parameter must be preceded by "^^".
Purpose
The ADD command allows you to add new lines to a work file. If there is no work file established--if you
have not entered a TEXT or FILE command--your ADD command will automatically create a new work
file.
Related Commands
While in ADD mode, you may enter the LIST MODIFY, and DELETE commands. To do so, you type ">>"
followed by the command at the start of a new line.
If you type ">>" without a command, the cursor moves to column 6 of your RPG Record Specification form.
This relieves you of the tedious task of spacing over columns 1 through 5, where the RPG optional line
numbers are specified, in order to begin entering your record specifications.
Once you type ">>" alone at the start of a new line, RISE will always prompt you for new text starting from
Column 6 whenever you are in ADD mode.
To return the cursor to column 1, type "<<", and RISE will prompt you from there.
Leaving ADD
To leave the ADD mode you type <Control Y> or "//" at the start of a new line.
Execution mode: Line
Record pointer: At last added line
Examples
The following are legal abbreviations used with the ADD command and its parameters:
A10^^H R3 Add line 10, Header Specifications form, REPEAT 3.
A^^H Add under Header Specification form.
AD L BY 10 Add beginning after last line using an increment value of 10.
Examples in this manual are based upon the file SIMCAL. In the examples of the ADD command, a