Time for action – deleting data about discontinued items

Suppose a manufacturer informs you about the categories of products that will no longer be available. You don't want to have those products in your database that you will not sell. So you use PDI to delete them.

  1. Open the LUX_discontinued.txt file available in the code bundle.
  2. Create a new transformation.
  3. With a Text file input step, read the file. As Number of header lines, type 4. Add a single field of type String and name it category.
  4. Preview the file. You will see the following:
    Time for action – deleting data about discontinued items
  5. After the Text file input step, add an Add constants step to add a String constant named man_code with value LUX

Get Pentaho Data Integration Beginner's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.