Transformations > Source transformation > File sources
  

File sources

File sources include flat files and FTP/SFTP files. When you configure a file source, you specify the connection, source type, and formatting options. Configure file source properties on the Source tab of the Properties panel.
The following table describes the file source properties:
Property
Description
Connection
Name of the source connection.
Source Type
Source type. The source type can be single object, file list, command, or parameter.
Object
If the source type is a single object, this property specifies the file source, for example, Customers.csv.
If the source property is a file list, this property specifies the text file that contains the file list, for example, SourceList.txt.
If the source type is a command, this property specifies the sample file from which Data Integration imports the source fields.
In an elastic mapping, the object name cannot contain the dollar sign character, $. The dollar sign is a reserved character for parameters.
Command
If the source type is a command, this property specifies the command that generates the source file list, for example, ItemSourcesCmd.bat.
Parameter
If the source type is a parameter, this property specifies the source parameter.
Formatting Options
Flat file format options. Opens the Formatting Options dialog box to define the format of the file.
You can choose either a delimited or fixed-width file type. Default is delimited.
For a delimited flat file type, configure the following file format options:
  • - Delimiter. Delimiter character. Can be a comma, tab character, colon, semicolon, end of transmission (EOT) character, or a character that you specify.
  • - Text Qualifier. Character to qualify text.
  • - Escape character. Escape character.
  • - Field labels. Determines if the task generates field labels or imports labels from the source file.
  • - First data row. The first row of data. The task starts the read at the row number that you enter.
You can use a tab, space, or any printable special character as a delimiter. The delimiter can have a maximum of 10 characters. The delimiter must be different from the escape character and text qualifier.
For a fixed-width flat file type, select the fixed-width file format to use. If you do not have a fixed-width file format, go to New > Components > Fixed-Width File Format to create one.
For more information about file lists and commands, see File lists. For more information about parameters and file formats, see Mappings.
The following table lists the advanced properties for file sources:
Property
Description
Tracing Level
Detail level of error and status messages that Data Integration writes in the session log. You can choose terse, normal, verbose initialization, or verbose data. Default is normal.
Thousand Separator
Thousand separator character. Can be none, comma, or period. Cannot be the same as the decimal separator or the delimiter character.
Field type must be Number. You might also need to update the field precision and scale.
Default is None.
Decimal Separator
Decimal character. Can be a comma or period. Cannot be the same as the thousand separator or delimiter character.
Field type must be Number. You might also need to update the field precision and scale.
Default is Period.