Set Datalog Position Function

Owning Palette: Datalog Functions

Requires: Base Development System

Moves the current datalog position of the file identified by refnum to the datalog position indicated by offset (in records) according to the mode in from.

The Write Datalog function changes the current datalog position to the end of the file. You cannot use this function to write to a different position in the file.

 Add to the block diagram  Find on the palette
refnum is the file refnum associated with the datalog file whose datalog position you want to set.
offset (in records) specifies how many records from the location specified by from to set the datalog position.
from, together with offset (in records), specifies where to set the datalog position. If you wire offset (in records), from defaults to 0, and the offset is relative to the beginning of the file. If you do not wire offset (in records), offset (in records) defaults to 0, from defaults to 2, and the operation starts at the current datalog position.

0start—Sets the datalog position offset (in records) from the beginning of the file. If from is 0, offset (in records) should be positive.
1end—Sets the datalog position offset (in records) from the end of the file. If from is 1, offset (in records) should be negative.
2current—Sets the datalog position offset (in records) from the current datalog position.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
refnum out returns refnum.
error out contains error information. This output provides standard error out functionality.