|
>(For AS400PackedDecimal, it says it has to be a BigDecimal object; you're using a byte array.) Thanks for pointing that out. It didn't make sense to me the usage they were implying but you have shed the light :-) They are using it for type casting purposes... Thanks Morris, Aaron Bartell -----Original Message----- From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] Sent: Monday, August 09, 2004 12:51 PM To: java400-l@xxxxxxxxxxxx Subject: Re: JTOpen - ServiceProgramCall "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.) -- This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.