Discussion:
AS400 DPC - Data Structure Issues...
(too old to reply)
TO_BizTalker
2010-03-15 15:34:37 UTC
Permalink
Hello all:

I am using TI to call an RPG program on AS400 over DPC. I have created
the client library, imported host definitions from RPG code and
verified the parameter types and stuff and have deployed it to TI. The
issue is that when I call the program, the parameter values are all
messed up on AS400 side. I used the WireShark/NetMon to see what I
send and the values seem ok. I can't figure out why it is happening.

One of the input parameters is data structure containing two packed
decimals (5.2 & 5.0) and a string (100 char). I am wondering if the
data structures in HIS require some special handling that I am missing
and is causing the issues? Do I need to change/set the "Variable
Sized" or "Member Filler" properties on the data structure?

PS: All the parameters are set to IN/OUT (as defined in RPG code).

I will appreciate any help.


Thanks

Maam.
TO_BizTalker
2010-03-15 17:11:48 UTC
Permalink
Hello all:

I figured it out (with the help from HIS team member):

I had the "Meta Data" property on the program set to "include all
information" which was sending extra information which the RPG program
on the other end of the wire was not expecting and hence reading
garbage.

Hope this response will help someone else (who might be running around
like a headless chicken trying to find out what's happening...)

Thanks

Maam.
Post by TO_BizTalker
I am using TI to call an RPG program on AS400 over DPC. I have created
the client library, imported host definitions from RPG code and
verified the parameter types and stuff and have deployed it to TI. The
issue is that when I call the program, the parameter values are all
messed up on AS400 side. I used the WireShark/NetMon to see what I
send and the values seem ok. I can't figure out why it is happening.
One of the input parameters is data structure containing two packed
decimals (5.2 & 5.0) and a string (100 char). I am wondering if the
data structures in HIS require some special handling that I am missing
and is causing the issues? Do I need to change/set the "Variable
Sized" or "Member Filler" properties on the data structure?
PS: All the parameters are set to IN/OUT (as defined in RPG code).
I will appreciate any help.
Thanks
Maam.
Continue reading on narkive:
Loading...