Defining the input component to read the email addresses - 6.5

Talend Job Script Reference Guide

Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Talend CommandLine
Talend Studio
Design and Development > Designing Jobs

Follow the steps below to add and configure the tFileInputDelimited component to the Job script, to read the source file.


  1. Create a new Job script, enter an addComponent {} function, and inside this function, enter the setComponentDefinition {} function and its parameters to add the first tFileInputDelimited component:
    addComponent {
    	setComponentDefinition {
    		TYPE: "tFileInputDelimited",
    		NAME: "tFileInputDelimited_1",
    		POSITION: 256, 192
  2. Next to the setComponentDefinition {} function, enter the setSettings {} function to specify the path to the source file, the number of header and footer rows to skip, and optionally the label of the component displayed in the design workspace.

    In this example, the source file is D:/Talend/Data/Input/emails.txt, and the component will be labelled Email addresses

    	setSettings {
    		FILENAME : "\"D:/Talend/Data/Input/emails.txt\"",
    		LABEL : "Email addresses"

    Be sure to use a backslash (\) when specifying a metacharacter.

  3. Next to the setSettings {} function, enter in an addSchema {} function and its addColumn {} sub-functions to define the component schema.

    In this example, the source file has only one column, email, type String.

    	addSchema {
    		NAME: "tFileInputDelimited_1",
    		addColumn {
    			NAME: "email",
    			TYPE: "id_String"