Data Dictionary Configuration File

The BASIS configuration file, most commonly named config.tpm, is an ASCII text file that identifies the location of the data and dictionary files. The file must contain the paths to the DICTIONARY and DATA directories but can also contain global path and login information. The following is an example of a standard config.tpm file:

# Demo Database Configuration

Configuration File Guidelines

#if, #else, #endif conditionals

  • Two forms allowed.

#if expression
global assignment(s)
#if expression
global assignment(s)
global assignment(s)

  • If the expression condition is true, then any lines between #else and #endif are ignored.

  • If the expression condition is false, then any lines between the #if and #else (or #endif in the first form) are ignored.

#Include statements

  • Causes another configuration file to be parsed at the point the #include is encountered.

  • May appear within quotes.

  • Filename may include global paths.

  • May contain other #include statements

  • In the following example, the global WORK is translated to /usr/asmith/work/. The file, /usr/asmith/work/, is parsed for global assignments:


Conditional blocks

  • May be nested.

  • May take one of four forms. For example:


  • In the first and third forms, the global or environment variable needs only to exist to register true.

  • In the second and fourth forms, the global or environment variable needs to exist and have the specified value to be regarded as true.

  • Quotation marks within or surrounding the value arguments have no special meaning.

DICTIONARY and DATA directories

  • Must be entered and upper case.

  • Must point to the physical location of the BASIS data dictionary and data files defined in the dictionary, respectively.

  • May reside on a server and may even reside on different servers. In these situations, ensure that a valid server path is included when defining the DICTIONARY and DATA values, as shown in the following example:


  • If the DATA and DICTIONARY directories reside on the same server, the entries must still include the server PATH to the data files and dictionary.

File comments

  • Indicated by a sentence beginning with a pound sign (#). (The exception to this is the #include statement.)

Forward or backward slashes

  • Either is acceptable for DOS/Windows style paths.


  • Must be used to resolve the location of the file paths defined in the data dictionary if the data dictionary uses global strings (i.e., literals enclosed in parentheses). The following is an example of global path definitions used in a configuration file:

# Demo Database Configuration

  • May refer to current environment variables. In the following example, the "$" before "HOME" indicates that this is an environment reference. If the HOME environment variable does not exist, the BASE global will be set to the null string:


Another way to accomplish this is to put the environment variable within parentheses. For example:



The following is an example of a standard config.tpm file:

# Taos Demo Database Configuration