Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning Pentaho Data Integration 8 CE - Third Edition

You're reading from  Learning Pentaho Data Integration 8 CE - Third Edition

Product type Book
Published in Dec 2017
Publisher Packt
ISBN-13 9781788292436
Pages 500 pages
Edition 3rd Edition
Languages

Table of Contents (23) Chapters

Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface
Getting Started with Pentaho Data Integration Getting Started with Transformations Creating Basic Task Flows Reading and Writing Files Manipulating PDI Data and Metadata Controlling the Flow of Data Cleansing, Validating, and Fixing Data Manipulating Data by Coding Transforming the Dataset Performing Basic Operations with Databases Loading Data Marts with PDI Creating Portable and Reusable Transformations Implementing Metadata Injection Creating Advanced Jobs Launching Transformations and Jobs from the Command Line Best Practices for Designing and Deploying a PDI Project

Outputting data to files


Creating and populating files with data is another common requirement in ETL processes. This section is meant to teach you how to do this with PDI.

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:

Adding fields in a Calculator step

  1. Expand the Output branch of the Steps tree, look for the Text file output step and drag it to the work area.
  2. Create a hop from the Calculator step to this new step...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}