Using command-line arguments

Besides the use of named parameters, there is another way to provide external values to a Transformation: command-line arguments, that is, arguments that you supply in the command line when you run Pan or Kitchen. In this section, you will learn how to implement the use of command-line arguments in Spoon and how to provide the values in Spoon and also when running Pan.

First, let's create a new version of the Hello World Transformation that we created in Chapter 1, Getting Started with Pentaho Data Integration. The purpose of the Transformation is to read your name from the command line and then write it to the log:

  1. Create a new Transformation.
  2. Drag to the work area a Get System Info step, a UDJE step, and a ...

Get Learning Pentaho Data Integration 8 CE - Third 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.