DIRECTION

Set direction of a READS

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
DIRECTION:dir_spec

Arguments

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.

Discussion

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.

See also

READS statement