Executing a job or a transformation by setting static arguments and parameters

When you develop a transformation that reads command-line arguments or defines named parameters, you usually intend to call it more than once with different values for those parameters or arguments. If you know the values beforehand, there is an easy way to call the transformation, as you will see in this recipe. Suppose that you want to create the following three files:

  • First file: Numbers from 1 to 10, incrementing by 1, as in 0, 1,..., 10
  • Second file: Numbers from 0 to 100, incrementing by 20, as in 0, 20, 40,..., 100
  • Third file: Numbers from 100 to 500, incrementing by 100, as in 100, 200,.., 500

You have a transformation that generates sequences like these. You just ...

Get Pentaho Data Integration Cookbook Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.