Multiple Import and Export sections can be specified in the configuration file. Any section name can be used (other than one of the predefined section names Server or Logging).
An Import and Export section specifies the properties and layout of a text file or data stream. An import specification describes an input file; an export specification describes an output file.
The table given below describes the keys available in the Import and Export sections of the configuration file.
Key |
Description |
---|---|
Type |
The import or export file type. Valid values are:
|
CodePage |
The import or export file code page. Valid values are:
|
FileName |
The name of the import or export file. It can be overridden by the command line parameter -ef. A blank or missing entry for this parameter will result in the output being sent to stdout. |
HeaderLine |
Specifies whether the first line of the import file contains field names and should be ignored. False by default. |
DelimiterCode |
The ASCII code of the field delimiter. For instance, the ASCII code for a tab is 9, for a comma is 44 and for a pipe is 124. |
FieldCount |
The number of fields within the import or export file. |
SampleInterval |
The interval between records imported or exported. Default is 1, meaning that all records are processed. |
RecordDelimiter |
Specifies whether each record in a fixed width export should be separated by a carriage return. Default is Yes. |
OutputFilter |
Specifies whether the output data should be filtered. Valid values are:
|
Field name<1 to n>
|
Specifies each field name, which can be one of the following three types:
In an export specification, a prefix of Input will ensure that the input data gets written to the export file, whereas either no prefix or a prefix of Output will ensure that the processed data gets written. To ignore a field in the input file, set the field name to Ignore. To pass a field directly through from the import file to the export
file without any processing, set the field name to A contact field may be any of the following:
|
Field name<1 to n> (continued) |
|
Field name<1 to n> (continued) |
|
FieldWidth<1 to n> |
This specifies the width of each field in a fixed width file. |