
Component family |
File/Output |
|
Function |
tFileOutputLDIF outputs data to |
|
Purpose |
tFileOutputLDIF writes or |
|
Basic settings |
File name |
Name or path to the output file and/or the variable to be used. For further information about how to define and use a variable in |
|
Wrap |
Wraps the file content, every defined number of characters. |
|
Change type |
Select Add, Modify or Delete to |
|
Schema and Edit |
A schema is a row description, it defines the number of fields to be processed and Since version 5.6, both the Built-In mode and the Repository mode are Click Edit schema to make changes to the schema. If the
|
|
|
Built-in: The schema will be |
|
|
Repository: The schema already |
|
Sync columns |
Click to synchronize the output file schema with the input file |
|
Append |
Select this check box to add the new rows at the end of the |
Advanced settings |
Create directory if not exists |
This check box is selected by default. It creates the directory |
|
Custom the flush buffer size |
Select this check box to define the number of lines to write
Row Number: set the number of lines |
|
Encoding |
Select the encoding from the list or select Custom and define it manually. This field is |
|
Don’t generate empty file |
Select this check box if you do not want to generate empty |
|
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at a |
Dynamic settings |
Click the [+] button to add a row in the table and fill the The Dynamic settings table is available only when the For more information on Dynamic settings and context |
|
Global Variables |
NB_LINE: the number of rows read by an input component or ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see Talend Studio |
|
Usage |
Use this component to write an XML file with data passed on from |
|
Limitation |
Due to license incompatibility, one or more JARs required to use this component are not |
This scenario describes a two component Job which aims at extracting data from a
database table and writing this data into a new output LDIF file.

-
Drop a tMysqlInput component and a
tFileOutputLDIF component from the
Palette to the design area. -
Connect the components together using a Row >
Main link.
-
Select the tMysqlInput component, and go
to the Component panel then select the
Basic settings tab. -
If you stored the DB connection details in a Metadata entry in the Repository, set the Property type as well as the Schema type on Repository and select the relevant metadata entry. All other
fields are filled in automatically, and retrieve the metadata-stored
parameters. -
Alternatively select Built-in as the
Property type and Schema type and define the DB connection and schema
manually. -
Then double-click on tFileOutpuLDIF and
define the Basic settings. -
Browse to the folder where you store the Output file. In this use case, a
new LDIF file is to be created. Thus type in the name of this new
file. -
In the Wrap field, enter the number of
characters held on one line. The text coming afterwards will get wrapped
onto the next line. -
Select Add as Change Type as the newly created file is by definition
empty. In case of modification type of Change, you’ll need to define the
nature of the modification you want to make to the file. -
As the Schema type, select Built-in and use the Sync
Columns button to retrieve the input schema
definition.