DIRECTION

Set direction of a READS

WSupported on Windows
USupported on Unix
VSupported on OpenVMS
NSupported in Synergy .NET
DIRECTION:dir_spec

dir_spec

One of the following identifiers or corresponding values: (n)

Q_IGNDIR or 0

Ignore the DIRECTION qualifier.

Q_FORWARD or 1

Read the next sequential record in a forward direction. (default)

Q_REVERSE or 2

Read the next sequential record in a reverse direction.

The DIRECTION qualifier specifies the direction in which to perform a READS. It is supported only on ISAM and relative files.

The DIRECTION qualifier is ignored if it follows a FIND on the same channel.

Note

Due to poor performance, on OpenVMS we recommend reading in the reverse direction only on keys without duplicates.

READS statement