Parsing a falt file with repeating records, but no file head

I have a flat file that has a structure similar to this:


where 1 is batch header, 2 is batch detail and 3 is batch footer. If there is just one occurence of this, my falt file schema works fine.

If there are multiple occurences, all the records from the second occurence and below show beneath the batch footer of first record.

I know I can make the flat file parser recognize the multiple batches if I have a file header and a file footer record. However, I would like to know if its possible to parse this without a file header and footer

as long as batch detail record appears, parsing happens (Assuming record identifier appears correctly).

Ensure that “mandatory” is unchecked.

Bhavani Shankar