O'Reilly logo

Talend Open Studio Cookbook by Rick Barton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appending records to a file

This simple recipe shows how a file can be built in within different sub jobs by appending data to an existing file. The append method is one way of building complex files, as will be demonstrated in later recipes in this chapter.

Getting ready

Open the jo_cook_ch08_0010_fileAppend job.

How to do it...

The steps for appending records to a file are as follows:

  1. Copy the complete subjob1 – copy me sub job and paste it to create a second sub job.
  2. Link the two sub jobs using an onSubjobOK link.
  3. Open tFixedFlowInput, and change Records from first subjob to Records from second subjob.
  4. Open tFileOutputDelimited on the new sub job, and tick Append, as shown in the following screenshot:

How it works...

The first sub job creates the file, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required