Creating a simple file

As well as taking data from several types of files, PDI is capable of sending data to different types of output files. All you have to do is redirect the flow of data towards the proper output step.

As a starting point, we will demonstrate how to generate a plain text file. In this case, we will generate a file with dates:

  1. From the code in Chapter 2, Getting Started with Transformations open the Transformation that generates dates, date_range.ktr. Save it under a different name.
  1. Double-click the second Calculator step. We will use this step for adding more fields related to each date. Fill the grid as follows:

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.