Element Text Writer Column

Defines a single text file data column.

Name

Type

Required

Description

Data Format Parameters

Data Format Parameters

No

Local level (column) data format definition. Refer to DataFormatParameters for details.

Expression

String

No

Defines an expression to execute in order to get the value to be written to the output column. If no expression is defined, the value from the input column named (as specified by "name" attribute) is written (or an empty value if such name does not represent any input column).

Name

String

Yes

Specifies the name of the column to write to the file. The name of a column does not have to be present in the input file format. In this case a new column with the specified name is created in the output file format.



Example: Example
<step id='output' className='cz.adastra.cif.tasks.io.text.write.TextFileWriter'>
        <properties>
                <fileName>someOutputFilevystup.csv</fileName>
                <encoding>iso-8859-1</encoding>
                <fieldSeparator>;</fieldSeparator>
                <lineSeparator>\r\n</lineSeparator>
                <stringQualifier>"</stringQualifier>
                <stringQualifierEscape>"</stringQualifierEscape>
                <writeHeader>true</writeHeader>
                <columns>
                        <column name='id' />
                        <column name='text' />
                        <column name='day'>
                                <dataFormatParameters>
                                        <dateFormatLocale>en_US</dateFormatLocale>
                                        <dayFormat>dd-MM-yyyy</dayFormat>
                                </dataFormatParameters>
                        </column>
                        <column name='dayToo' expression='day'/>
                </columns>
        </properties>
</step>

iWay Software