I need to pass a 9 digit Binary field (4 bytes in length) to an RPGLE program from a non-RPG program. Following shows how I coded in RPGLE.
* Parameter Fields
d pmbid ds
d mbid 9b 0
c *entry plist
c parm pmbid
When the Binary value is passed as the above parameter, the program doesn't convert it to the correct value.
I debugged the programs and found that the binary values sent by the calling program is converted to a different value by RPGLE. For your info. following are the values sent by non-RPG and received by RPGLE.
Sent Received by RPGLE
However, When I define this as either Packed or Zoned in both programs (Calling & Called) it works fine.
Please provide a solution as I must use passing field in Binary.
Thanks & Regards!
October 20, 2004 3:46 AM
October 9, 2010 4:02 PM