Hey Jim –
I hate resurrecting old threads like this, but I’m having a similar challenge, and can’t find anything in the forums as a direct solution.
My particular case stems from a need to break up an OBX-5.5 into additional OBX segments if the character length in OBX-5.5 is greater than 200 characters in length. Each accompanying OBX segment would have a 200 character limit on its OBX-5.5 as well. For example, I’d need to break up the following segment:
OBX|11|ED|PDF^PDF||^AP^^Base64^JVBERi0xLjMKJeLjz9MNCjEgMCBvYmoKPDwKL0NyZWF0aW9uRGF0ZSAoRDoyMDE1MDcyODA5MDYwNSkKL0NyZWF0b3IgKEFjdHVhdGUpCi9Qcm9kdWNlciAoQWN0dWF0ZSBYTUwgdG8gUERGIENvbnZlcnRlciAxLjApCj4+CmVuZG9iagoyIDAgb2JqCjw8Ci9UeXBlIC9QYWdlCi9NZWRpYUJveCBbIDAgMCA2MTIgNzkyIF0KL0NvbnRlbnRzIDMgMCBSCi9SZXNvdXJjZXMgNCAwIFIKL1BhcmVudCA1IDAgUgo+PgplbmRvYmoKMyAwIG9iago8PAovRmlsdGVyIC9GbGF0ZURlY29kZQovTGVuZ3RoIDYgMCBSCi9MZW5ndGgxIDE3Mjk2IAo+PgpzdHJlYW0KeJztXOtv2zgS/+6/gsABhwRoZJF6F4sD2jx6WSSpm2T3sNjsB8VmbN3q4ZXk5LJ//c2Q1NNyJDvZbFq0RRs/yHnxN8PhaBhKfhxRosPfA/zheIxMo9EfI/zEpkzTdYofip8pH/2HxPDlx2vxva6ZnqsbHknno/EJJS65vquIWYalwVzH0myTX
Into:
OBX|11|ED|PDF^PDF||^AP^^Base64^JVBERi0xLjMKJeLjz9MNCjEgMCBvYmoKPDwKL0NyZWF0aW9uRGF0ZSAoRDoyMDE1MDcyODA5MDYwNSkKL0NyZWF0b3IgKEFjdHVhdGUpCi9Qcm9kdWNlciAoQWN0dWF0ZSBYTUwgdG8gUERGIENvbnZlcnRlciAxLjApCj4+CmVuZG9iagoyIDAgb2JqCjw8Ci9UeXB
OBX|12|ED|PDF^PDF||^AP^^Base64^1IC9QYWdlCi9NZWRpYUJveCBbIDAgMCA2MTIgNzkyIF0KL0NvbnRlbnRzIDMgMCBSCi9SZXNvdXJjZXMgNCAwIFIKL1BhcmVudCA1IDAgUgo+PgplbmRvYmoKMyAwIG9iago8PAovRmlsdGVyIC9GbGF0ZURlY29kZQovTGVuZ3RoIDYgMCBSCi9MZW5ndGgxIDE3Mj
OBX|13|ED|PDF^PDF||^AP^^Base64^k2IAo+PgpzdHJlYW0KeJztXOtv2zgS/+6/gsABhwRoZJF6F4sD2jx6WSSpm2T3sNjsB8VmbN3q4ZXk5LJ//c2Q1NNyJDvZbFq0RRs/yHnxN8PhaBhKfhxRosPfA/zheIxMo9EfI/zEpkzTdYofip8pH/2HxPDlx2vxva6ZnqsbHknno/EJJS65vquIWYalwVzH0myTX
Would you mind elaborating on how you’d accomplish this in an XLATE?
Thanks, as always, for all of your help!