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 the READS.

Note

The REVERSE keyword, which is functionally similar to the ­DIRECTION:Q_REVERSE qualifier, is available on the READS statement. However, on the READS statement for ISAM files, we suggest that you use ­DIRECTION instead of REVERSE.

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

See also

READS.