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 bycolumn
.
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.
...