DPOSN/DXPOS

These calls are used to position any type of file to a point relative to its current position or to a specific record number. DPOSN is equivalent to the FMGR call POSNT; DXPOS is equivalent to EOPSN.

DPOSN(dcb,err,nur[,rec][,erlc])

DXPOS(dcb,err,nur[,rec][,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.)

nur

16-bit integer/32-bit integer. Record count or

 

record number. A variable containing either the number of

 

records to skip forward (positive value) or backwards (negative

 

value), or the absolute record number to which the file is to be

 

positioned (positive integer only). The rec parameter

 

determines how nur is interpreted. For DXPOS, nur is a

 

doubleword variable with the same meaning.

rec

16-bit integer. A variable that, if zero, declares that nur

 

is the number of records to skip. If rec is not zero, nur is

 

interpreted as an absolute record number.

erlc

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

 

Common Parameters" for more information.)

1010 Remote File Access