There are a number of built-in script functions that can be used to retrieve or modify values in substitution tables. Substitution tables are to some extent similar to maps, see
Map functions.
A substitution table contains several entries (rows), and each entry contains two or more columns. The first column is the key, which is a unique identifier for each entry. The remaining columns contain the values for the entry (value 0, value 1,..., value N).
You can create a substitution table as a table resource in any resource set in your Project. Each entry must contain two or more columns, where the first column is the key (a unique identifier for the entry) and the remaining columns contain the values for the entry.
When you use a substitution table script function, you must specify the path to the substitution table to work with. If you create the substitution table as a table resource, the substitution table file will be exported and deployed to:
In this example, the substitution table author.tbl is created as a table resource. The script function
Subst is used to retrieve the first value of the substitution table entry with the key
agatha.
A substitution table is kept in memory until the script function EraseSubst is called for that table. This means StreamServer performance will be affected if several tables are created in a job, and if the tables are never removed from memory during the job using the
EraseSubst function.
For example, if you use variables in the table names, you must make sure there are a limited number of tables in the memory. In this case you must call
EraseSubst for each table after it is used.
The table below contains a short description of each script function. For information about syntax, examples, etc., see the full description of each script function.