in reply to 850 EDI Help
I had to build a general purpose X12 EDI header parser and store and forward system. I just put a version of it on code snippets
EDI Store and Forward System
If you get heavily into EDI you will find a great deal of customization past what is in the DISA references. In particular there will be Trading Partner Agreements that establish very specific nuances. It is most often the case that you will work with one big player, like a large retailer, in concert with hundreds or thousands of little guys. The big guy publishes a TPA and the other guys follow it. So... you really need to get the TPA that is relavant to your problem and then... thank heavens for perl as it will mung right into parsing the thing. Even if you got a good generic 850 parser you will need to go line by line (pardon me char by char)to assure a good result. Then... ouch many TPAs and their users will adhere to some older standards that don't comply with the current methods and your perl may be the transformer for their future. I LOVE EDI, but like a marriage it takes custom work.