Download Print this page

HP 3000 Manual page 153

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

Advertisement

>
(3) >FILE DIRSIM
File opened.
(4) >L1/6
1
SIMCAL
2
3
4
5
6
>
>
>
CHANGE
CHANGE changes an "oldstring" to a "newstring".
Form
CH[ANGE] "oldstring" TO "newstring" [IN lb [/le]]
Parameter Explanation
"oldstring"
The old string you are replacing.
"newstring"
The new string that is replacing the old.
IN
Indicates that a range of lines to be changed follows.
lb
First, or only, line number where change will be made.
le
Line where the change ends.
Purpose
The CHANGE command replaces "oldstring" with "newstring". If no line range is specified, the changes
will be made from the current position of the record pointer to the end of file.
Special Considerations
The number of characters in "oldstring" must be the s ame as that of "newstring". If there is any
difference, the column position of characters would be changed, possibly making the RPG source line
syntactically incorrect.
Delimiters
You may use any special characters as delimiters except the slash (/).
Execution mode: Line or Block.
Record pointer: At last line changed.
00011H
00012FINPUT
IP
00013FOUTPUT
O
00014IINPUT
AA
00015I
OR
00016I
OR
F
72
F
72
01
1 CA
02
1 CS
03
1 CM
TAPE
TAPE
2- 155

Advertisement

loading