# COBOL Binary field problem.

**URL:** <https://techcommunity.softwareag.com/t/cobol-binary-field-problem/59637>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [May 17, 2006, 1:58am UTC](https://techcommunity.softwareag.com/t/cobol-binary-field-problem/59637 "2006-05-17T01:58:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Euro](https://avatars.discourse-cdn.com/v4/letter/e/4da419/32.png) [@Euro](https://techcommunity.softwareag.com/u/Euro)\
**Post date:** [May 17, 2006, 1:58am UTC](https://techcommunity.softwareag.com/t/cobol-binary-field-problem/59637/1 "2006-05-17T01:58:32Z")

</div>

Hello.  
I have the following EntireX enviroment for a PoC:

- EntireX 7.2.2 in Windows 2003 Server.
- BROKER Stub for COBOL in VSE/ESA mainframe (COBOL ACI CLIENT)
- NATURAL For Windows XP (NATURAL ACI SERVER)
- I am using the new RELAY MANAGER for VSE (All is working fine)

My only problem is passing a COBOL field of type “PIC S9(4) COMP” to the Natural Server (B2)??, I don’t know how to handle.

COBOL send me the following values (20B4) → is 8372. and  
The Natural Server recieves (1AA9) → 6825.

I receive Packed ok and the rest OF Fields are ok.

Appreciate any help.

Grettings.

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [June 9, 2006, 3:38pm UTC](https://techcommunity.softwareag.com/t/cobol-binary-field-problem/59637/2 "2006-06-09T15:38:34Z")

</div>

This will probably never work. Your client is on VSE and your server on Windows and thus the Broker is doing a EBCDIC - ASCII translation on your message data. If your message has embedded binary data the translation will corrupt this data.

If you really want to send a mixture of alphanumeric and binary data types you should consider using RPC.

---

<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, 2:39pm UTC](https://techcommunity.softwareag.com/t/cobol-binary-field-problem/59637/3 "2021-04-02T14:39:57Z")

</div>


