DWRIT/DXWRI

These routines write data from a data buffer to your file (currently open to the Data Control Block). DWRIT is equivalent to the FMGR call WRITF; DXWRI is equivalent to

EWRIT.

DWRIT(dcb,err,buf,len[,num][,erlc])

DXWRI(dcb,err,buf,len[,num][,erlc])

dcb

Four-word array. Data Control Block. (See •RFA

(input/output)

Common Parameters" for more information.)

err

16-bit integer. Error return variable. (See •RFA

 

Common Parameters" for more information.)

buf

Data buffer; an array of a size equal to or greater than the value

 

of the len parameter.

len

16-bit integer. Data length variable. (See •RFA

 

Common Parameters" for more information.)

num

16-bit integer/32-bit integer. Record number. A

 

variable containing the record number to which data is to be

 

transferred (if positive), or the number of records to backspace

 

(if negative). Used only for type 1 and 2 files. If omitted,

 

record at current file position is written to. For DXWRI, num is

 

a doubleword variable up to (2**31)-1.

erlc

16-bit integer. Error condition location. (See •RFA

 

Common Parameters" for more information.)

1016 Remote File Access