NET/MASTER Network Control Language (NCL) Programmer's Guide
Working With Single Key-Sequenced Files
Working With Files
106160 Tandem Computers Incorporated 12–63
Table 12-7 lists the options you can use to specify the method of generic retrieval and
set the retrieval direction to backward.
Table 12-5. Generic Retrieval Options That Set Direction Backward
Option Meaning
KEL Retrieves a record with a record key generically equal to the specified key and
sets retrieval direction backward.
KLE Retrieves a record with a record key generically less than or equal to the specified
key and sets retrieval direction backward.
KLT Retrieves a record with a record key generically less than the specified key and
sets retrieval direction backward.
Figure 12-15 illustrates generic retrieval.
Figure 12-15. Generic Retrieval From a Key-Sequenced File
FILE SET KEY="JOHNSON"
FILE GET OPT=KEQ ARGS
039
ADAMS, E.W.
ANDERSON, K.A.
BOND, A.E.
BROWN, E.R.
BROWN, R.B.
JACKSON, P.Q.
JOHNSON, A.E.
JOHNSON, E.E.
JOHNSON, P.T.
JOHNSON, X.A.
SMITH, D.P.
STEVENSON, E.R.
WILLIAMS, J.J.
Subsequent
Retrieval
Statements
Start