HP RPG/iX Utilities Reference Manual (30318-90006)
2- 196
R SO W SE Renumber source line numbers so that they correspond
with sequence line numbers.
REN SO Renumber source line numbers so that they have
bracketing values according to the record specification
form with which they are associated.
The examples use a truncated version of SIMCAL consisting of the first five lines. It has been stored in a
permanent file with the name PARTSIM. When an attempt to TEXT the file is made, and the filename is
typed incorrectly, an error message is returned (1). The command is then given correctly, and the file
contents are listed (2). RENUM is entered along with a parameter calling for an increment value of 100.
When the command has been executed, RISE returns a message (3). After the LIST command is executed,
the renumbered lines are shown on the screen (4). RENUM BOTH follows, with the BY 1 parameter.
Another listing reveals how both sequence line numbers, and source line numbers are affected by this
command (5).
(1) >TEX PARTSIM2
NONEXISTENT PERMANENT FILE (FSERR 52)
(2) >TEX PARTSIM
Text completed.
>L ALL
1 00011H
SIMCAL
2 00012FINPUT IP F 72 DISK
3 00013FOUTPUT O F 72 DISK
4 00014IINPUT AA 01 1 CA
5 00015I OR 02 1 CS
(3) >RENUM ALL BY 100
Renum completed.
(4) >L ALL
100 00011H
SIMCAL
200 00012FINPUT IP F 72 DISK
300 00013FOUTPUT O F 72 DISK
400 00014IINPUT AA 01 1 CA
500 00015I OR 02 1 CS
>
>RENUM BOTH BY 1
Renum completed.
>L ALL
1 00001H
SIMCAL
2 00002FINPUT IP F 72 DISK
3 00003FOUTPUT O F 72 DISK
4 00004IINPUT AA 01 1 CA
(5) 5 00005I OR 02 1 CS
>
In the next example, a misspelling of SOURCE evokes an error (1). When the command is entered
correctly and listed on the screen, the source line numbers are seen to be numbered according to the
bracketing values (2). Next, another typing error causes the display of an error message (3). The
command, entered correctly, causes the sequence line numbers to take on the same numbers as the source
line numbers (4). The source line numbers are then changed by a command which sets their increment
value at 10. The results are brought to the screen by a LIST command (5).
An error results from a mistaken parameter following WITH (6), and a message is displayed. When a
command to renumber source lines with sequence line numbers is correctly entered, and the LIST
command is used, the results are displayed on the screen (7).