I got this to work in one pass by setting up a delimted FF schema with “newline” as the record delimiter, and “|” as the field delimiter.
I set up a schema with “001” as the record Identifer for the fixed length lines, and used a Fixed Position Extractor. Set Max Repeat to unlimited.
The second record was set up with “002” as the record identifer, and was set up as child of the first record, and Max Repeat was left at “1”. Use a Nth field extractor for this.
The problem that occurs is that the 002 records have no delimiter between the record identifier (002) and the first data element, so the first data element must have the “002” stripped off to be usable.
I have a sample .zip file. If you would like to obtain the zip file or discuss this further, contact me at pjewell@webmethods.com
Best Regards,
-Phillip
#webMethods#Integration-Server-and-ESB#webMethods-General