Download Print this page

HP 3000 Manual page 194

Mpe/ix computer systems, rpg/xl utilities
Hide thumbs Also See for 3000:

Advertisement

R SO W SE
REN SO
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
SIMCAL
2
3
4
5
(3)
>RENUM ALL BY 100
Renum completed.
(4)
>L ALL
100
SIMCAL
200
300
400
500
>
>RENUM BOTH BY 1
Renum completed.
>L ALL
1
SIMCAL
2
3
4
(5)
5
>
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).
2- 196
Renumber source line numbers so that they correspond
with sequence line numbers.
Renumber source line numbers so that they have
bracketing values according to the record specification
form with which they are associated.
00011H
00012FINPUT
00013FOUTPUT
00014IINPUT
00015I
OR
00011H
00012FINPUT
00013FOUTPUT
00014IINPUT
00015I
OR
00001H
00002FINPUT
00003FOUTPUT
00004IINPUT
00005I
OR
IP
F
72
O
F
72
AA
01
1
CA
02
1
CS
IP
F
72
O
F
72
AA
01
1
CA
02
1
CS
IP
F
72
O
F
72
AA
01
1
CA
02
1
CS
DISK
DISK
DISK
DISK
DISK
DISK

Advertisement

loading