I had created a generic program for creating and JMS Producer or Consumer on the AS/400 but I have run into a snag for a new person trying to use it.
They are trying to send a full record format string through to the JMS and it is fine for most tables, but on the tables that have variable length columns it is receiving an error. RNX0450 Character value not entirely enclosed by shift-out and shift-in. So, on these strings withing the strings it has an x'0F' (Shift-Out) but with no x'0E' (Shift-In). When I strip out the hexadecimal x'0F' the string can go through, but they are unable to read it on the other side.
The point where I am getting the error is withing the generic producer on the Send where I am taking the varying Alphanumeric and putting it to a C Type variable (UCS-2) before putting it to a String Buffer. I have tried numerous things such as a String with a Byte Array as a constructor which is the equivalent of an RPG Alphanumeric, but again, no luck. I have tried numerous other things as well.
Any help would be much appreciated.