How to create a Job script - 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

While you can create your Job script in any text editor and name your file with the .jobscript extension, you can create it using Job script API editor of your Talend Studio, making full use of the facilities offered by the Studio.

In the Job script editor of your Talend Studio, you can use the auto-completion (Ctrl+Space) to help you write your Job script. Functions, parameters and some values will be suggested to you.

The code will display in color to easily differentiate the code, the values and the comment, and the syntax is checked for any mistake. If a parameter is wrongly set a red cross displays. For more information on customizing Job script display in the Talend Studio, see How to customize Job script display. For information on managing Job script templates, see How to create Job script templates.

Procedure

  1. Open your Talend Studio following the procedure detailed in the Getting Started Guide.
  2. In the Repository tree view of the Integration perspective, expand the Code node.
  3. Right-click the Job Scripts node and select Create JobScript from the contextual menu.

    The Create JobScript wizard opens to help you define the main properties of the new Job script.

  4. Enter the Job script properties.
    Field Description
    Name The name of the new Job script. A message comes up if you enter prohibited characters.
    Purpose Job script purpose or any useful information regarding the Job script use.
    Description Job script description.
    Author A read-only field that shows by default the current user login.
    Locker A read-only field that shows by default the login of the user who owns the lock on the current Job. This field is empty when you are creating a Job script and has data only when you are editing the properties of an existing Job script.
    Version A read-only field. You can manually increment the version using the M and m buttons.
    Status A list to select from the status of the Job script you are creating.
    Path A list to select from the folder in which the Job script will be created.
  5. Click Finish to create the Job script.

Results

An empty Job script file opens in the workspace showing the name of the script as a tab label. You can now start writing your Job script to design your Job.