Encoding separators

To enable you to set encoding separators for outbound messages, elements, an ENCODE keyed list, are added into the SEPCHARS keyed list. This makes the new SEPCHARS look similar to:

{FIELD "XXX"}
{COMPONENT "XXX"}
{REPEAT "XXX"}
{ESCAPE "XXX"}
{SEGMENT "XXX"}
{DECIMAL "XXX"}
{SUBCOMPONENT "XXX"}
{ENCODE
        {SEGMENT "XXX"}
}

To change the segment separator of an outbound message, set the ENCODE.SEGMENT value. This is retrieved in the postProcessHMD and used to encode the message.

To set this, in an Xlate CALL action:

set sepchars [xpmmetaget $xlateId SEPCHARS] keylset sepchars
ENCODE.SEGMENT "\r\n"
xpmmetaset $xlateId SEPCHARS $sepchars