I was able to recover the following from the debug log:
- Code: Select all
Input XML: <?xml version="1.0" encoding="ISO-8859-1" ?><script>
<pgm name='A4MNTR99' lib='TESTLIB'>
<parm comment='ProgramName' io='both'>
<data type='10A' var='CALL-KEY' >TESTRECORD</data>
</parm>
<parm comment='NextNumber' io='both'>
<data type='8A' var='CALL-NEXT-NUMBER' >INIT</data>
</parm>
<parm comment='ReturnMessage' io='both'>
<data type='80A' var='CALL-RETURN-MESSAGE' >INIT</data>
</parm>
</pgm>
</script>
Nothing else is logged after this and the process hangs.
So I created a program with no parameters and am attempting to call it to simplify things. In this case the request returns with failure. The debug log has the following message:
- Code: Select all
Message . . . . : Total parameters passed does not match number required.
Cause . . . . . : Program &2 attempted to call program A4MNTRXX with 8192
parameters. Program A4MNTRXX expects a minimum of 0 and a maximum of 0
parameters. Recovery . . . : Use the Display Program (DSPPGM) command to
determine the correct number of parameters to pass.]]>
My call is as follows:
- Code: Select all
$result = $ToolkitServiceObj->PgmCall("A4MNTRXX", "TESTLIB");
Environment: v5r4, ZendServer 5.6
Any guidance is appreciated.
- Chris

