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



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Is it really necessary to do this in order to get the data returned into
a java variable? I'm assuming that I need to create an AS400<whatever>
object to act as a template, so I create one for each bi-directional
parameter. Is that right, or am I just making a lot of work for myself?

int myPackedVar = 0;
AS400PackedDecimal myPackedParm = new AS400PackedDecimal(5, 0);
... snip ...
parms[5] = new ProgramParameter(
myPackedParm.toBytes(myPackedVar), 5);
if (myProgramCall.run()) {
... snip ...
if (parms[5].getOutputDataLength() > 0)
myPackedVar = Integer.parseInt(
myPackedParm.toObject(
parms[5].getOutputData()).toString());
}
}

- --
Pete Hall
pete@xxxxxxxxxxxxxx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkrwsxYACgkQXczQcKdXKg70MACeN6vtpMt+5JjfnZ8m16CIRap8
fkIAoKn4X9zroPS5XhE42Ki1gSA+xGbi
=zHzK
-----END PGP SIGNATURE-----

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.