Example - 6.5

Talend Job Script Reference Guide

author
Talend Documentation Team
EnrichVersion
6.5
EnrichProdName
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
task
Design and Development > Designing Jobs
EnrichPlatform
Talend CommandLine
Talend Studio

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"
      }