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)
This mailing list archive is Copyright 1997-2026 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.