Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (D-E)
Guardian Procedure Calls Reference Manual—522629-013
4-108
EXTENDEDIT Procedure
filenum input, output
INT .EXT:ref:1
specifies the file number of the open file to be copied into a new file. It returns the
file number of the new file.
start input
INT(32):value
specifies 1000 times the line number of the first line of the new file. You supply this
parameter when you want the lines in the new file to be renumbered. If you omit
start, renumbering still occurs if increment is present, in which case the value
of
increment is used for start. The possible EDIT line numbers are 0, 0.001,
0.002, ... 99999.999.
increment input
INT(32):value
if present and greater than 0, causes EXTENDEDIT to renumber the lines in the
new file using the incremental value specified. The possible EDIT line numbers
are 0, 0.001, 0.002, ... 99999.999. The value of
increment indicates 1000 times
the value to be added to each successive line number.
If
increment is not supplied, the line numbers from the original file are used in the
new file.
Example
In the following example, EXTENDEDIT copies the specified EDIT file into a new file
with a larger extent size. In the new file, the line number of the first line will be 1 and
the line number increment will be 1.
INT(32) start := 1000D;
INT(32) increment := 1000D;
.
.
err := EXTENDEDIT ( filenumber, start, increment );
Related Programming Manual
For programming information about the EXTENDEDIT procedure, refer to the Guardian
Programmer’s Guide.