Please see attachment w/test file and .xlt attached.
Here’s what the Help file shows – however I’m hoping someone may have come upon this and can assist.
Thank you.
Encoding separators
To enable you to set encoding separators for outbound messages, elements (an ENCODE keyed list) are added into the SEPCHARS keyed list, which make the newSEPCHARS look similar to:
{FIELD “XXX”}
{COMPONENT “XXX”}
{ESCAPE “XXX”}
{SEGMENT “XXX”}
{DECIMAL “XXX”}
{ENCODE
{
{FIELD “XXX”}
{COMPONENT “XXX”}
{ESCAPE “XXX”}
{SEGMENT “XXX”}
{DECIMAL “XXX”}
}
}
If you must change the segment separator of an outbound message, set the ENCODE.SEGMENT value in an Xlate CALL action:
set sepchars [xpmmetaget $xlateId SEPCHARS] keylset sepchars
ENCODE.SEGMENT “rn”
xpmmetaset $xlateId SEPCHARS $sepchars
You can also set the ENCODE.FIELD, ENCODE.COMPONENT, ENCODE.ESCAPE, and ENCODE.DECIMAL values in an Xlate CALL action to encode.
Example
This is an example for encoding a UN/EDIFACT message using SEGMENT “$” and FIELD “#” (only in a Tcl program):
set msgId [msgcreate]
msginsert $msgId “UNH+AA+AUTHOR