To use a file list in a Lookup transformation, create the text file, batch file, or shell script that creates the file list. Then configure the Lookup transformation to use the file list.
Create the text file, batch file, or shell script that creates the file list and install it locally to the Secure Agent.
In the Mapping Designer, select the Lookup transformation.
On the
Lookup Object
tab, select a flat file connection.
To use a manually created file list, perform the following steps:
In the
Source Type
field, select
File List
.
In the
Lookup Object
field, select the text file that contains the file list.
On the
Return Fields
tab, verify the return fields for the Lookup transformation.
Data Integration
extracts the return fields from the first file in the file list. If the return fields are not correct, you can add or remove fields.
To use a file list that is generated from a command, perform the following steps:
In the
Source Type
field, select
Command
.
In the
Lookup Object
field, select the sample file from which
Data Integration
extracts return fields.
You can use one of the files you use to generate the file list as the sample file or select a different file.
In the
Command
field, enter the command that you use to generate the file list, for example,
/home/dsmith/flatfile/parts/parts.sh
.
On the
Return Fields
tab, verify the return fields for the Lookup transformation.
If the return fields are not correct, you can add or remove fields, or click the