Download Print this page

HP 3000 Manual page 191

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

Advertisement

(4)
>L1/5
1
SIMCAL
2
3.5
4
5
In the next example, the record pointer is moved to the last line in the file when LIST LAST is entered (1).
A command is then given to MOVE a range of lines beginning ten lines before the current record pointer
and ending with the last line in the file to line 100 (2). The results appear on the screen (3). An attempt to
move an empty line range brings up an error message (4). Another error is committed when a MOVE
command is entered with only a portion of the line range specified (5). Finally, a third error is caused by a
MOVE command used with an illegal destination value (6).
(1) >L LAST
38
(2) >MOVE *-10/LAST TO 100
100
101
102
103
104
105
106
107
108
109
(3)
110
Move completed.
(4) >MOVE 50/70 TO FIRST BY .11
Error 81: Range is empty.
(5) >MOVE FIRST
Error 149: TO location missing.
(6) >MOVE FIRST TO .1155
Error 74: A maximum of 3 digits is allowed right of decimal.
>
PRINT
PRINT enables you to print a complete work file or portion of the file, or a compilation listing of a file, on
the line printer.
Form
P[RINT] lb[/le] [R[PGLIST]]
Parameter Explanation
lb
First, or single, line you wish to have printed.
le
Last line of a range you want printed offline.
RPGLIST
Print the last RPG compilation listing produced by the RISE VERIFY command.
Purpose
The PRINT command prints a line, a line range, or a complete file on the line printer in a special format
00011H
00013FOUTPUT
O
00012FINPUT
IP
00014IINPUT
AA
00015I
OR
00048O*END OF POGRAM
00038O
00039O
D 1
00040O
OR
00041O
00042O
00043O
D 11
00044O
OR
00045O
00046O
D
00047O
00048O*END OF PROGRAM
^
F
72
F
72
01
1
CA
02
1
CS
RESULT
60 "
1P
N1P
10 "ENTER DATA"
25 "IN THE FORMAT:"
1P
N1P
13 "C NNNDD NNNDD"
05
15 "INVALID REQUEST"
DISK
DISK
, 0 .
-"
2- 193

Advertisement

loading