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.
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:
tFileRowCountcomponent 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. ...