On Mon, Mar 12, 2012 at 5:29 PM, baleado <[email protected]> wrote: > Hi, > > I'm trying to use the camel-jt400 component to call a PGM program in a AS400 > environment. > > The PGM have 4 parameters: > A10 - Alphanumeric > N5 - Numeric > N5,2 - Packed Decimal > A30 - Alphanumeric > > Here is my component configuration: > <camel:to > uri="jt400://<MYUSER>:<MYPASSWORD>@<SYSTEM>/QSYS.LIB/<MYLIB>/MYPGM.PGM?fieldsLength=10,5,5,80&outputFieldsIdx=4" > /> > > The message input that i'm using: > String[] params = {"Test","12345", "123", ""}; > > But in AS400 environment I can see that an error occurred: Decimal Data > Error. > > How can I configure the decimal and packed decimal input parameters? >
I suggest to dive into the JT400 API and figure out this, and then help provide a patch to camel-jt400. As you got access to a real AS/400 you can try it out and get it fixed. We love contributions http://camel.apache.org/contributing.html > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/JT400-Component-Program-Call-Packed-Decimal-tp5558328p5558328.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
