Writing a semi-structured file

A standard file generated with Kettle is a file with several columns, which may vary according to how you configured the Fields tab of the Output step and one row for each row in your dataset, all with the same structure. If you want the file to have a header, the header is automatically created with the names of the fields. What if you want to generate a file somehow different from that? Suppose that you have a file with a list of topics for a writing examination. When a student has to take the examination, you take that list of topics and generate a sheet like the following:

Student name: Mary Williams ------------------------------------------------------------- Choose one of the following topics and write a paragraph ...

Get Pentaho Data Integration Cookbook Second 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.