This is something that might be easier to do in a tcl proc either pre or post xlate. You’d split the message into a list of segments, pull out the OBX segments, sort the OBX segments however you want them, and then rebuild the message.
This is not that difficult to do in an Xlate (if you understand Xlates) and in my opinion Xlate is the better place to do this work – it keeps everything in front of you.
Anyway, I do this frequently in an Xlate and it is no big deal.
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.
I have been trying to do this in an Xlate. I have tried it in one iteration and two or more interations. it still outputs it in order. Funny thing is that even though I do the logic on the OBXs with ST last whether its one iteration or mulitple the ST always come out first with my logic including the OBX counters. So my output would look something like this:
OBX|6|ST|||a
OBX|7|ST|||
OBX|8|ST|||b-c
OBX|1|FX|||1
OBX|2|FX|||2
OBX|3|FT|||da
OBX|4|FT|||db
OBX|5|FT|||dc
Can you folks give me examples of how you would do this? I am running CL 5.5 rev 1 on AIX 5.3.
here’s an update. Jim was able to figure this out using an Xlate. On the inbound he used two iterates and used only one on the outbound. Didn’t know the Xlate was capable of doing something like this. Pretty slick!
Author
Replies
Viewing 7 reply threads
The forum ‘Cloverleaf’ is closed to new topics and replies.