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



"Bartell, Aaron L. (TC)" wrote:
> 
> Thanks to both David and Barbara for your comments, I have made those
> changes but that doesn't address my main problem which is how to compose
> the input argument when the service pgm is expecting a data structure
> with many different data types in it.  Any ideas on that?
> 
> Here is the data structure:
>      D CallRPG_myDS    DS                  Qualified
>      D  alpha1                       10A
>      D  alpha2                        5A
>      D  int1                         10P 0
>      D  packed1                       3P 0
> 
> How do I put data into the appropriate Java objects to make it work?
> Seems like they shortchanged the documentation.

Aaron, for each type in your AS400DataType array myStruct, you need the
correct object type in your Object array inData.  The documentation for
each type (AS400PackedDecimal etc) says what the object type must be for
toBytes.  (For AS400PackedDecimal, it says it has to be a BigDecimal
object; you're using a byte array.)


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.