I am trying to use WmFlatFile to parse a string that is coming from a Websphere MQ Queue. The string on the queue represents a cobol copybook. I can get this to work if the data structure is very simple. It seems to fall down when the cobol copybook has re-occuring records inside of it. For those of you that know cobol, it has occurs clauses. Here is a simple example of what I am talking about. The following is an example of data that would need to be parsed by the WmFlatFile.
Joe Smith Chicago ILNew York NYMiami FL
John Doe Seatle WALuverne MN
This represents 2 messages that are put on the queue with the following structure.
FirstName 5 bytes
LastName 10 bytes
City 10 bytes (can occur up to 3 times)
State 2 bytes (can occur up to 3 times)
This is a very simple example. In real life there are multiple occurs clauses in each copybook. There are also no record identifiers either. I’m just trying to figure out if I am missing something or if the WmFlatFile will not support this.
Thanks for any suggestions.