COBOL Binary field problem.

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.

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.