U2_Btree_Extract subroutine

This subroutine is similar to the Linear Hash Btree.Extract. Searches one or more indexes for data matching the search criteria passed in. Returns the keys to rows having matching data.

U2_Btree_Extract(Search_String, Filename, Dictvar, Keys, Opts, Status)

The subroutine has the following parameters:

ParameterDescription
Search_StringThe search criteria to use. See Btree.Extract for syntax.

Note: This is currently an exact match extract.
FilenamePass the name of the file to be searched.
DictvarPass the file handle for the dictionary of the specified file.
KeysReturns row keys for all rows that satisfy the criteria in Search_String. Multiple keys are delimited with value marks.
OptsFor U2_Btree_Extract this parameter should be null.

StatusError codes are returned in the Status parameter. After execution, keys contains a list of keys matching the search criteria. Status returns one of several possible values, depending on the success of the search process.

Value - Meaning
0 - The search was successful. All possible keys were returned in keys.
-1 - The search failed, for reasons other than no keys found. This occurs, for example, when a specified column does not have a Btree index.
  • guides/programming/programmers_reference_manual/u2_btree_extract.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1