Populate a field by looking up values in another CAS file (the 'Lookup file') based on multiple keys. Note: All field names should be in quotes.
PENALTY gt (STATE lookup 'c:\subdir\file.cas' 'STATE' 'MAXPENALTY')
lookupn 'C:\data\programs' 'PROGRAM' 'RATETYPE' 'ORIGTERM' 'INDEX'
(CurrentKey) lookupn 'LookupSource' 'ReturnField' 'Keyfield1' ('KeyField2') ('KeyField3')
Name | Data Type | Input Type | Description | Optional | Default |
---|---|---|---|---|---|
CurrentKey | Text | Constant | Key field in active CAS file. | Yes |
Name | Data Type | Input Type | Description | Optional | Default |
---|---|---|---|---|---|
LookupSource | Text | Constant | Filepath or table name in current CAS file | No | |
ReturnField | Text | Constant | Name of field containing values to return | No | |
KeyField1 | Text | Constant | Name of key field in other cas file | No | |
KeyField2 | Text | Constant | Name of key field in other cas file | Yes | |
KeyField3 | Text | Constant | Name of field containing values to return | Yes |
Type: Text