× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



 >> I mean raw Unicode bytes being passed into the RPG module in a variable
that, while nominally a character field, is in fact used to pass in raw
bytes that already might at various times be almost any combination of
character and/or zoned data (but no packed or binary). 

I missed the first part of this thread so if I'm missing something here
please excuse me but ...

Why not simply define the input parm as character?  You are only going to
receive a pointer anyway, so the interpretation of the data is entirely up
to you.

If that "field" is a DS then you can do whatever you want.  Like so:

     d input           ds
     d   ucs2Field1               16000c   
     d   ucs2Field2               16000c   
     d   charField                64000a   overlay(input)
     d   packedArray                 15p 0 overlay(input) dim(8000)
     d   binaryStuff                 10i 0 overlay(input) dim(16000)

What am I missing?


Jon Paris
Partner400

www.Partner400.com
www.RPGWorld.com 


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.