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.
- Open the
LUX_discontinued.txt
file available in the code bundle. - Create a new transformation.
- With a Text file input step, read the file. As Number of header lines, type
4
. Add a single field of typeString
and name itcategory
. - Preview the file. You will see the following:
- After the Text file input step, add an Add constants step to add a
String
constant namedman_code
with valueLUX
Get Pentaho Data Integration Beginner's Guide 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.