Using the information in the header and trailer
This recipe follows on from the previous recipe, but shows how the information in the header can be added to the detail data, and the data in the trailer used for validation, as is typically the case with files of this type.
Getting ready
Open the jo_cook_ch08_0080_useHeaderAndTrailerInfo
job. This job is the completed job from the previous recipe; however, do note that the tLogRow
components have now been replaced with tHashOutput
components. Also, note that three tHashInput
components have also been added and configured.
How to do it...
We will be performing two main tasks; the first is to use the trailer information to validate the file, and then take a column from the header to use in all the output ...
Get Talend Open Studio Cookbook 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.