Get_Env routine

Returns an attribute or list of attributes from the database environment for the current database.

Get_Env(attributelist)

The Get_Env routine has the following parameter.

ParameterDescription
attributelistSpecifies one or more attribute identifiers. If an attribute identifier is invalid, no value is returned for that column.

A table of environment attributes immediately follows the description of this command. It lists the available attribute identifiers, attribute descriptions, and the data type or value that can be assigned to an attribute.

Environment attributes are listed in the following table.

Attribute IdentifierAttribute DescriptionAttribute Data Type or Value
1Default data volume.Valid volume identifier.
2Sort path.Valid drive\path.
3Transaction volume.Valid volume identifier.
4Default XREF stop list.Default stop word list.
5Seconds before index update.Integer.
6Update indexes before query.Boolean.
7Unlock all at commit.Boolean.
8Deadlock recheck (seconds).Integer.
9Transaction failure timeout.Integer.
10Consistency lock level.0 - 4.

Level Description
0 - No implicit locking.
1 - Sets exclusive locks during updates for the duration of the update.
2 - Sets exclusive locks during updates for the duration of each transaction.
3 - Sets exclusive locks during updates for the duration of query.
4 - Sets exclusive table lock during updates and shared table lock during queries for the duration of each transaction.
11Maximum allowable locks.Integer.
12Automatic transaction start.Boolean.
13Deadlock check (seconds).Integer.
14Network cache.Integer.
15Default active language set.Valid language set name.
16List of language sets to load.Valid language set names.
17Query case sensitivity.Value Description
0 - Case sensitive.
1 - Case insensitive.
18TimeDate format.Valid OConv (DT) pattern.
19Suppress non-numeric errors.Boolean.
20Printer form height.Integer.
21Printer form width.Integer.
22SQL null display string.Literal string of text.
23Debugger.Value Description
0 - Debugger disabled.
1 - Debugger enabled.
24Default folder for stored procedures.Folder name.
25Default I/O conversion.Value Description
0 - No conversion performed.
1 - Convert and validate.
26Commit log storage volumeVolume name.
27Commit protection.Value Description
0 - Commit unprotected.
1 - Commit protected.
28Deadlock resolution scheme.Value Description
0 - Rollback "youngest" transaction.
1 - Rollback least active transaction.
29SQL implicit lock type.Value Description
0 - Table lock.
1 - Row lock.
30Coordinated locking.Value Description
0 - No coordinated locks.
1 - Table/row locks coordinated.

The $Insert record Environ_Constants defines these positions.

/* Returns the default data volume and stop list, and debugger information from the environment for the current database. */

attributelist = "1":@FM:"4":@FM:"23"
Get_Env(attributelist)
If Get_Status(ErrCodes) Then
       GoSub ErrorHandling
End
  • guides/programming/programmers_reference_manual/get_env.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1