Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (W-Z)
Guardian Procedure Calls Reference Manual—522629-013
16-20
WRITEEDITP Procedure
45 All of the file’s possible extents are allocated and full. You can use
EXTENDEDIT to increase the file’s extent size and call WRITEEDITP again.
filenum input
INT:value
specifies the file number of the open file to which the line is to be written.
record-number input
INT(32):value
if present, specifies the record number of the line to be written. If
record-
number:
•
is greater than or equal to 0, it specifies 1000 times the EDIT line number of
the line to be written.
•
is -1, the line is written at the beginning of the file.
•
is -2, the line is written at the end of the file.
•
is -3 or omitted, the line is written to the line represented by the file’s current
record number.
packed-line input
STRING .EXT:ref:*
is a string array that contains the line in packed format that is to be written. The
length of
packed-line is specified by the packed-length parameter.
packed-length input
INT:value
specifies the length in bytes of
packed-line. The packed-length must be in
the range 1 through 256.
Example
INT(32) record^num := -2D; ! write to end of file
.
.
error := WRITEEDITP ( filenumber, record^num, line^image,
line^length );
Related Programming Manual
For programming information about the WRITEEDITP procedure, refer to the Guardian
Programmer’s Guide.