Charlie,
Yeah, I am aware I could do that… but it’s not just length encoding, it’s last/not-last identifier, data/reply type, ack/nak indicator, length-encoding value, and then MLLP encoding around the message itself. It looks like a beast to do, not ever having done a PDL write myself.
The reasoning I was given from the developers on why that method was chosen doesn’t make sense for the financial application (smaller record lengths), where this encoding scheme is in place. It would make sense on a system that receives results (much larger records) and would be more efficient, yet their results system defaults to standard MLLP, if I remember correctly.
The reason that made sense in my head was to force customers to use their interface engine, as it is just a few clicks to get it done, there. 😀 😀
As it stands, we are going to have them change their system to use standard MLLP encapsulation only.