I am looking for some help in figuring out how to break a long message into smaller messages using a tcl proc. We have a limitation of 300 OBX’s to LCR. Procs is attached. It works when I have OBX number less than 300 or more than 300 but fails to split the message when the OBX is exactly 300 or 600 or 900.
So if the message has 300 OBX’s I need one message. If the message has more than 300 OBX’s say 353, we need to create 2 messages with a DSC segment at the end of the first message and continuation counter on the 2nd message. I have attached my proc.
Thanks for your help in advance.
Alka…