# Underlined Asterisk as segment terminator

**URL:** <https://techcommunity.softwareag.com/t/underlined-asterisk-as-segment-terminator/107845>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [June 2, 2003, 8:46pm UTC](https://techcommunity.softwareag.com/t/underlined-asterisk-as-segment-terminator/107845 "2003-06-02T20:46:14Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [June 2, 2003, 8:46pm UTC](https://techcommunity.softwareag.com/t/underlined-asterisk-as-segment-terminator/107845/1 "2003-06-02T20:46:14Z")

</div>

Has anyone had to deal with an underlined asterisk segment terminator??? We have a trading partner using version X12 3020 docs with this as the segment terminator. Just curious how you specified this character in your services because I cannot find information on it anywhere… Thx in advance

---

<div class="post-metadata">

**Author:** ![Chris\_L](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@Chris\_L](https://techcommunity.softwareag.com/u/Chris_L)\
**Post date:** [June 2, 2003, 10:30pm UTC](https://techcommunity.softwareag.com/t/underlined-asterisk-as-segment-terminator/107845/2 "2003-06-02T22:30:22Z")

</div>

Here’s a guess. The character may be showing up as an underlined asterisk on your system in your particular viewer. Find out what the actual Hex value is.

HTH

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [June 2, 2003, 10:47pm UTC](https://techcommunity.softwareag.com/t/underlined-asterisk-as-segment-terminator/107845/3 "2003-06-02T22:47:48Z")

</div>

Segment delmiter can be any type (\* or } or + or -),actually when we receive EDI documnent and doing invoke wm.b2b.edi:convertToValues,edi adapter will take care and gives output IData EDIvalues,So,i believe no need to specify delmiters parameter in that service,its straight forward.

And with the result of EDIValues next step will be the mapping, what ever the target is…

HTH.

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [June 2, 2003, 11:10pm UTC](https://techcommunity.softwareag.com/t/underlined-asterisk-as-segment-terminator/107845/4 "2003-06-02T23:10:12Z")

</div>

James:

pls ignore my earlier post,I mis-understood your comment  
for underlined asterisk segment delimiter (\__) as (_),since i tested for \_\* it didn’t worked out ,only working one is with (\*)as a segment delimiter.

Let you know if i came up with any solution,

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [June 2, 2003, 11:23pm UTC](https://techcommunity.softwareag.com/t/underlined-asterisk-as-segment-terminator/107845/5 "2003-06-02T23:23:10Z")

</div>

Does this mean anything to you guys:

Segment Separator \_ \_ \_ \_ \_ \_ \_ \_ \_ \_ \_ \_ \_ \_ x’15’

I assume this is the Hex value?? A bit lost how I can translate this in webMethods.

RMG, I know how to specify the separator but I do not know how to specify an underlined asterisk in webMethods. This is the separator that Sears expects.

---

<div class="post-metadata">

**Author:** ![reamon](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@reamon](https://techcommunity.softwareag.com/u/reamon)\
**Post date:** [June 3, 2003, 12:46am UTC](https://techcommunity.softwareag.com/t/underlined-asterisk-as-segment-terminator/107845/6 "2003-06-03T00:46:18Z")

</div>

For inbound docs you don’t need to do anything explicit as RMG pointed out. It should just work.

For specifying the 0x15 as the segment delimiter for the EDI docs you generate, you need to do a little work. There is a Java service posted on [wmusers.com](http://wmusers.com) (in the forums, not shareware) called toChar that will convert a string literal escape sequence to a character. [url=“[wmusers.com](http://www.wmusers.com/wmusers/messages/117/186.shtml)”][wmusers.com](http://www.wmusers.com/wmusers/messages/117/186.shtml%5B/url%5D)  
You can use this to create your segment delimiter.

HTH

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [June 3, 2003, 1:37am UTC](https://techcommunity.softwareag.com/t/underlined-asterisk-as-segment-terminator/107845/7 "2003-06-03T01:37:18Z")

</div>

Thanks fellas… Got that figured out now.

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [June 3, 2003, 3:58am UTC](https://techcommunity.softwareag.com/t/underlined-asterisk-as-segment-terminator/107845/8 "2003-06-03T03:58:56Z")

</div>

James,

Did you resolved using the Rob’s (customized JavaService) or else  
using your own methodology?If so can you share with us.

Thanks,

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [June 3, 2003, 9:13pm UTC](https://techcommunity.softwareag.com/t/underlined-asterisk-as-segment-terminator/107845/9 "2003-06-03T21:13:25Z")

</div>

RMG i simply specified the unicode in the convertToString service and it is able to accept the unicode and convert it. Didnt try Rob’s service… The true test is when I send to the partner and they verify on their end.

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [June 3, 2003, 10:08pm UTC](https://techcommunity.softwareag.com/t/underlined-asterisk-as-segment-terminator/107845/10 "2003-06-03T22:08:28Z")

</div>

Can you tell us whats the unicode format that you have specified in converToString in the (Delimiters-field parameter) for (\_\*).

Thanks for sharing,

---

<div class="post-metadata">

**Author:** ![reamon](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@reamon](https://techcommunity.softwareag.com/u/reamon)\
**Post date:** [June 3, 2003, 11:32pm UTC](https://techcommunity.softwareag.com/t/underlined-asterisk-as-segment-terminator/107845/11 "2003-06-03T23:32:03Z")

</div>

I had forgotten that convertToString supports unicode escapes. From the doc:

You can specify the terminator or separator as a character (e.g., \*) or as unit code [sic] (e.g., \u001c).

So specifying \u0015 would work in James’ case. I think it also supports other escape codes such as \r, \n, etc.

The fun part is that the enveloping services (wm.b2b.edi.util:addGroupEnvelope and wm.b2b.edi.util:addICEnvelope) _do not_ support escaped strings as delimiters. At least they didn’t in v4.6. Thus the toChar utility was born.

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [June 4, 2003, 12:22am UTC](https://techcommunity.softwareag.com/t/underlined-asterisk-as-segment-terminator/107845/12 "2003-06-04T00:22:59Z")

</div>

Thanks Rob, for sharing your comments and i understand the unicode for (\_\*)delimiter expressed as \u0015.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:04pm UTC](https://techcommunity.softwareag.com/t/underlined-asterisk-as-segment-terminator/107845/13 "2021-04-02T15:04:56Z")

</div>


