Table of Contents

5.4.5.3 Seek Statement

Note

This section describes the implementation of MS-VBAL §5.4.5.3 Seek Statement.

Syntax

AST node Instruction kind(s) Notes
KeywordStatementNode Simple Token: Seek.

See RD-VBAL §3.4.3 File Statements.

Runtime Semantics

MS-VBAL §5.4.5.3 counts the file-pointer-position from 1.

The record number of the Put and Get statements and the file-pointer-position are one quantity, and Seek and Get must agree on it. Record number 1 is therefore byte 0 of the file; see RD-VBAL §5.4.5.11 Put Statement and RD-VBAL §5.4.5.12 Get Statement.

Implementation

Like every file statement, Seek runs through the session's file-channel shim, IFileChannels (RD-VBAL §5.4.5 File Statements).


⏮️ RD-VBAL §5.4.5.2 Close and Reset Statements | ⏭️ RD-VBAL §5.4.5.4 Lock Statement