I need to extract and validate data from file with fix-length .It has multiple records of different structure.Value of a field RECID identifies the record as header,detail or trailer record.RECID with value H1234 will be header,RECID with value D1234 will be detail and RECID with value T1234 will be trailer. File will have data in following format
It is not possible to do it in one step. You have to read all data (one field with eol delimiter or mixed metadata) and then partition them. After partitioning you can write them to different files (and they are prepared for reading now) or validate in Reformat or Filter node.