Table 1-5 Data Retrieval Operations
|
Operation
|
Code
|
Description
|
|
Index-Based (Logical) Data Retrieval
|
|
Get Equal
|
5
|
Returns the first record in the specified index path whose key value matches the specified key value.
|
|
Get Next
|
6
|
Returns the record following the current record in the index path.
|
|
Get Previous
|
7
|
Returns the record preceding the current record in the index path.
|
|
Get Greater Than
|
8
|
Returns the first record in the specified index path whose key value is greater than the specified key value.
|
|
Get Greater Than or Equal
|
9
|
Returns the first record in the specified index path whose key value is equal to or greater than the specified key value.
|
|
Get Less Than
|
10
|
Returns the first record in the specified index path whose key value is less than the specified key value.
|
|
Get Less Than or Equal
|
11
|
Returns the first record in the specified index path whose key value is equal to or less than the specified key value.
|
|
Get First
|
12
|
Returns the first record in the specified index path.
|
|
Get Last
|
13
|
Returns the last record in the specified index path.
|
|
Get Next Extended
|
36
|
Returns one or more records that follow the current record in the index path. Filtering conditions can be applied.
|
|
Get Previous Extended
|
37
|
Returns one or more records that precede the current record in the index path. Filtering conditions can be applied.
|
|
Get Key
|
+50
|
Detects the presence of a key value in a file, without returning an actual record.
|
|
Get By Percentage
|
44
|
Returns the record located approximately at a position derived from the specified percentage value.
|
|
Find Percentage
|
45
|
Returns a percentage figure based on the current record's position in the file.
|
|
Non-Index-Based (Physical) Retrieval
|
|
Get Position
|
22
|
Returns the position of the current record.
|
|
Get Direct/Chunk
|
23
|
Returns data from the specified portions (chunks) of a record at a specified position.
|
|
Get Direct/Record
|
23
|
Returns the record at a specified position.
|
|
Step Next
|
24
|
Returns the record from the physical location following the current record.
|
|
Step First
|
33
|
Returns the record in the first physical location in the file.
|
|
Step Last
|
34
|
Returns the record in the last physical location in the file.
|
|
Step Previous
|
35
|
Returns the record in the physical location preceding the current record.
|
|
Step Next Extended
|
38
|
Returns one or more successive records from the location physically following the current record. Filtering conditions can be applied.
|
|
Step Previous Extended
|
39
|
Returns one or more preceding records from the location physically preceding the current record. Filtering conditions can be applied.
|
|
Get By Percentage
|
44
|
Returns the record located approximately at a position derived from the specified percentage value.
|
|
Find Percentage
|
45
|
Returns a percentage figure based on the current record's position in the file.
|
|
Concurrency Control Biases (Add to the Appropriate Operation Code)
|
|
Single-record wait read lock
|
+100
|
Locks only one record at a time. If the record is already locked, the client retries the operation.
|
|
Single-record no-wait read lock
|
+200
|
Locks only one record at a time. If the record is already locked, the transactional interface returns an error status code.
|
|
Multiple-record wait read lock
|
+300
|
Locks several records concurrently in the same file. If the record is already locked, the client retries the operation.
|
|
Multiple-record no-wait read lock
|
+400
|
Locks several records concurrently in the same file. If the record is already locked, the transactional interface returns an error status code.
|
|
No-wait page write lock
|
+500
|
In a concurrent transaction, tells the transactional interface not to wait if the page to be changed has already been changed by another active concurrent transaction. This bias can be combined with any of the record locking read biases (+100, +200, +300, or +400).
|