Guardian Procedure Calls Reference Manual

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.
Returned Value
INT
A file-system error code that indicates the outcome of the call. Possible values include:
File already includes a line with the specified record number.10
Invalid length specified in the packed-length parameter.21
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.
45
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, see the Guardian Programmer's
Guide.
WRITEEDITP Procedure 1503