# GS08: 12 byte values

**URL:** <https://techcommunity.softwareag.com/t/gs08-12-byte-values/109097>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [October 23, 2006, 9:00pm UTC](https://techcommunity.softwareag.com/t/gs08-12-byte-values/109097 "2006-10-23T21:00:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![spg](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@spg](https://techcommunity.softwareag.com/u/spg)\
**Post date:** [October 23, 2006, 9:00pm UTC](https://techcommunity.softwareag.com/t/gs08-12-byte-values/109097/1 "2006-10-23T21:00:22Z")

</div>

Hi,  
Has anyone ever dealt with creating X12 documents in webMethods where the GS08 is a 12 byte value like “004010X091A1”.

I am using “wm.b2b.edi.util:addGroupEnvelope” to create the GS envelope and I get an error like “Name is required” if “verRelCode” is set to a 12 byte value like “004010X091A1”. It works with a 6 byte value like “004010” though.

Has anybody seen any problem like this or knows what might help.

Thanks,  
Shubhro

---

<div class="post-metadata">

**Author:** ![Mary\_Tillman](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Mary\_Tillman](https://techcommunity.softwareag.com/u/Mary_Tillman)\
**Post date:** [October 23, 2006, 10:09pm UTC](https://techcommunity.softwareag.com/t/gs08-12-byte-values/109097/2 "2006-10-23T22:09:56Z")

</div>

Shubro,

I have not dealt with a 12-byte value in GS08. Why are you using that value rather than ‘004010’?

Thanks,

Mary

---

<div class="post-metadata">

**Author:** ![spg](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@spg](https://techcommunity.softwareag.com/u/spg)\
**Post date:** [October 23, 2006, 10:19pm UTC](https://techcommunity.softwareag.com/t/gs08-12-byte-values/109097/3 "2006-10-23T22:19:23Z")

</div>

Mary,  
It’s a Trading Partner requirement. And I think it’s a valid one.

I did a search this morning on Internet and found this:  
if GS07 is “X” (for X12), the first 6 characters of GS08 is _always_ the X12 version /release (3 and 3). The remaining 6 characters are for  
“industry or trade association identifiers”.

Shubhro

---

<div class="post-metadata">

**Author:** ![Mary\_Tillman](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Mary\_Tillman](https://techcommunity.softwareag.com/u/Mary_Tillman)\
**Post date:** [October 23, 2006, 10:39pm UTC](https://techcommunity.softwareag.com/t/gs08-12-byte-values/109097/4 "2006-10-23T22:39:33Z")

</div>

Shubhro,

I do remember this requirement on a past project as well (Auto Industry X12 standards), but I don’t recall how it was handled. Are you sending T or X to the Agency Code? Perhaps that is related.

Mary

---

<div class="post-metadata">

**Author:** ![spg](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@spg](https://techcommunity.softwareag.com/u/spg)\
**Post date:** [October 23, 2006, 10:42pm UTC](https://techcommunity.softwareag.com/t/gs08-12-byte-values/109097/5 "2006-10-23T22:42:19Z")

</div>

Okay, I realized what/where the problem was.  
The problem was in generating a control number using a 12 byte version code.

I am using the service wm.b2b.editn.batch:getControlNumber ( before generating the GS envelope ) to generate the control numbers and this service cannot take in a 12 byte value. The solution is to use the first 6 bytes for the parameter “version” for the above mentioned service.

Also, I made a mistake in reporting the error message earlier. It actually was “java.sql.SQLException: [wm-cjdbc34-0046][Oracle JDBC Driver][Oracle]ORA-01401: inserted value too large for column”.

Apologize if that sent anybody thinking on a different track.

---

<div class="post-metadata">

**Author:** ![Mary\_Tillman](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Mary\_Tillman](https://techcommunity.softwareag.com/u/Mary_Tillman)\
**Post date:** [October 23, 2006, 10:50pm UTC](https://techcommunity.softwareag.com/t/gs08-12-byte-values/109097/6 "2006-10-23T22:50:02Z")

</div>

Thanks for the update, Shubhro.

---

<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:05pm UTC](https://techcommunity.softwareag.com/t/gs08-12-byte-values/109097/7 "2021-04-02T15:05:31Z")

</div>

Closed on April 2, 2021, 3:05pm UTC


