October 2013
Beginner to intermediate
270 pages
5h 41m
English
This recipe shows how to parse a file that has header and trailer records, but does not have an associated record type. Instead, the header is the first record in the file, and the trailer is the last record in the file.
Open the jo_cook_ch08_0070_headTrailtMapNoType job. You will see that it is a slightly changed version of the completed job from the previous recipe; the output schemas have changed.
The steps for reading headers and trailers with no identifiers are as follows:
tFileRowCount component onto the canvas.tFileRowCount, and change File Name to context.cookbookData+"/chapter8/chapter08_jo_0070_customerData.txt", which is the same as our input file. ...Read now
Unlock full access