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

2- 155
>
(3) >FILE DIRSIM
File opened.
(4) >L1/6
1 00011H
SIMCAL
2 00012FINPUT IP F 72 TAPE
3 00013FOUTPUT O F 72 TAPE
4 00014IINPUT AA 01 1 CA
5 00015I OR 02 1 CS
6 00016I OR 03 1 CM
>
>
>
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.