Example - 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

In the following example:

  • The output stream feature is activated in the component, via a global variable specifying the target path and file name defined in a tJava component. See tJava Job script properties for more information.

  • The header row is added to the target file.

setSettings {
      USESTREAM : "true",
      STREAMNAME : "(java.io.OutputStream)globalMap.get(\"output_file\")",
      INCLUDEHEADER : "true"