From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-
bounces@xxxxxxxxxxxx] On Behalf Of Pete Hall
Sent: Wednesday, November 04, 2009 5:41 PM
Subject: Re: Returning data with com.ibm.as400.access.ProgramCall
-----BEGIN PGP SIGNED MESSAGE-----
James Perkins wrote:
Yes it is. If you don't instantiate the object it's by default set tonull.
It would be luck passing *OMIT to an RPG program if you did notinstantiate
You might not however need to create one for each parameter though.
just one for each type. I would need to look into a bit more to be sureon
that. I don't use program calls like this too often.
Ok. Thanks James. I know I need to instantiate the class. I was mainly
wondering if there wasn't a less kludgey way of getting the returned
value back into a java variable. I need to explain this to some folks
that might find
if (parms.getOutputDataLength() > 0)
myPackedVar = Integer.parseInt(
a little counterintuitive. I was hoping that going from byte to string
to integer was a mistake. Maybe I can write a static function that will
clean it up a bit.
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.