Midrange News for the IBM i Community


Posted by: Nick Richard
Issue With Shift-Out Hexadecimal In String
has no ratings.
Published: 05 Apr 2012
Revised: 23 Jan 2013 - 4109 days ago
Last viewed on: 23 Apr 2024 (7301 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Issue With Shift-Out Hexadecimal In String Published by: Nick Richard on 05 Apr 2012 view comments(1)

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.

Thanks!

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Issue With Shift-Out Hexadecimal In String
Posted: 12 years 19 days 3 hours 33 minutes ago

Are you using the %UCS2 built-in function when moving the data into the field in question? If not, that might be your issue--but RPG has been pretty good about conversion accuracy. What CCSID is the program compiled as using?