Skip to main content Skip to complementary content

Creating and running the Job

Create a Job that uses your mapping to transform an input file.

Procedure

  1. Open the Integration perspective of Talend Studio.
  2. In the Repository, right-click Job Designs and click Create Standard Job.
  3. Enter a name for your job, readings_job for example, and a purpose and description.
  4. Add a tFileInputRaw component.
    You can drag and drop the component from the Palette or click the design workspace and start entering the name of the component.
  5. Double-click the tFileIntputRaw to open its properties and click the […] button next to the Filename field to select the readings.xml input file.
  6. Add a tHMap component to the right of the tFileInputRaw.
  7. Right-click the tFileInputRaw component and click Row > Main, then click the tHMap to create the link between the two components.
  8. Click the tHMap component and open its Component tab.
  9. Click the […] button to the right of the Map Path field and select readings_map.
  10. Press Ctrl + S to save the Job.
  11. Open the Run tab and click Run to execute the Job.

Results

The Job runs and generates the valid.xml, invalid.xml and cleansed.xml files in the specified folder.

The valid.xml file contains all records with a valid value in the ProbeTempF element, invalid.xml contains all records in which the value is N/C and cleansed.xml contains all records and the invalid values have been replaced by 0.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!