October 2013
Beginner to intermediate
270 pages
5h 41m
English
This recipe shows how to parse a file that has header and trailer records, and a record type at the start of a line.
Open the jo_cook_ch08_0060_headTrailtMap job.
The steps for reading headers and trailers using tMap are as follows:
tMap component onto the canvas.tFileInputFullRow to tMap, and rename the flow to customerIn.tMap, and create three new outputs. Name them header, detail, and trailer.customerIn.line.startsWith("00") to the header output table.customerIn.line.startsWith("01") to the detail output table.customerIn.line.startsWith("99") ...Read now
Unlock full access