Guardian Programming Reference Summary for pTAL and TAL

Procedure Calls Summary (R-Z)
Guardian Programming Reference Summary for pTAL and TAL522631-001
8-50
WRITEEDIT
Accepts a line in unpacked format, converts it into EDIT packed line format, and writes
it to the specified file. WRITEEDIT is an IOEdit procedure and can only be used with
files that have been opened by OPENEDIT or OPENEDIT_.
error := WRITEEDIT ( filenum
,[ record-number ]
,unpacked-line
,unpacked-length
,[ full-length ]
,[ new-record-number ] );
error, INT returned value
10 File already includes a line with the specified record number.
21 Specified record is too long to fit into EDIT packed line format. (The maximum is 255
bytes of packed text.)
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 WRITEEDIT again.
filenum, INT:value input
record-number, INT(32):value input
>= 0 Specifies 1000 times the EDIT line number of the line to be written.
-1 Specifies that the line is written at the beginning of the file.
-2 Specifies that the line is written at the end of the file.
-3 Specifies that the line is written to the line represented by the file’s current record
number.
unpacked-line, STRING .EXT:ref:* input
unpacked-length, INT:value input
full-length, INT:value input
new-record-number, INT(32) .EXT:ref:1 output