The following tables list the required and optional properties of the Text Data Sink component. Required property labels are displayed in bold text.
Property |
Description |
---|---|
Text Destination |
Specify the output file. Text Data Sink prompts you for the destination file when you add the component to the project. To specify a destination file, click the Destination File icon in the from the Properties window, and select an existing file, or type the full path and file name to create one during project execution. |
Columns |
Click the Columns icon to define columns for data in the source file. If the Property value is not empty, the Columns value reflects the port structure or attribute values you defined on the Component window. |
Property |
Description |
---|---|
Row Delimiter |
Select how each row is delimited:
Alternatively, you can enter a different delimiter. |
Row Length |
Specify the number of characters in each fixed row, if you have selected Position as the Row Delimiter. |
Column Delimiter |
Select how column are delimited:
Alternatively, you can enter a different delimiter. |
Column Quote |
Specify how you want the values in the output file to be quoted (delimited files only):
|
Fixed by Bytes |
Specify how to interpret the values provided for line length, column start, and column end:
For example – Suppose your source file includes binary: 0x61 62 63 d6 d0 ce c4 61 62 63 64 65 and has the following characteristics:
If you select the Fixed by Bytes option:
If you do not select the Fixed by Bytes option:
0xd6d0, c4c4 represents 2 Chinese characters in GB2312. |
Encoding |
Select an appropriate value from the drop-down menu to set the current character encoding. |
Column Header |
Select the option to write the column names to the file. |
Header |
Click the Header icon to create a report header to write to the file. Text Data Sink writes the header before it writes the incoming data. This is an optional output property. Type the header text for a header you want to write. Expressions are allowed in Square Bracket Notation. |
Append Data |
Select the option to append incoming data to the destination file. If you do not set this value, Text Data Sink overwrites any existing data in the destination file. |
Write Block Size |
Specify the number of records that Sybase ETL writes to the file in a single write operation. |