Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The TABLE-LOOKUP directive performs lookups into Table datasets.

Syntax

Code Block
table-lookup :column 'table'
  • column is an existing column that exists in both the current records and the table.

  • table is a Table Dataset that has a column named by column.

Usage Notes

The TABLE-LOOKUP directive uses a column as the lookup key into a specified Table dataset for each record. The column should be of type string. The values in the row of the Table will be parsed as strings and placed in the record in new columns, the names constructed from combining the lookup key and the row column name with an underscore.

Example

This example represents a lookup into the customerTable dataset of type Table, where the record's field name customerUserId will be used as the lookup key.

...