× 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.



> From: Jon Paris
> 
> 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?

I don't think you're missing anything, Jon.  I think this is exactly what
James was asking; can he just redefine the field.  My point, though, is that
if the RPG program is receiving Unicode data, define the parameter as
Unicode.  Or, if the data is raw binary bytes, define it as an array of
bytes (3u0).  Specifically defining the type of data expected can only help
to document the procedure.

Joe



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.