Guardian Programming Reference Summary for pTAL and TAL
Procedure Calls Summary (R-Z)
Guardian Programming Reference Summary for pTAL and TAL—522631-001
8-51
WRITEEDITP
Accepts a line in EDIT packed line format and writes it to the specified file.
WRITEEDITP is an IOEdit procedure and can be used only with files that have been
opened by OPENEDIT or OPENEDIT_.
WRITEREAD[X]
Writes data to a file from an array in the application process, then waits for data to be
transferred back from the file.
error := WRITEEDITP ( filenum
,[ record-number ]
,packed-line
,packed-length );
error, INT returned value
10 File already includes a line with the specified record number.
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.
packed-line, STRING .EXT:ref:* input
packed-length, INT:value input
CALL WRITEREAD[X] ( filenum
,buffer
,write-count
,read-count
,[ count-read ]
,[ tag ] );