Return value from procedure

The place for general PHP questions and hints for PHP on IBM i

Return value from procedure

Postby sonirajiv on Mon Nov 26, 2012 6:00 pm

I would like to call a procedure(RTVILN) within a service program (SRVCUS) from PHP. The procedure returns a value (numaric 13,0). How can I get it.
My code is.

$param[] = $ToolkitServiceObj->AddParameterChar('input', 2,'Divi', 'PrmDiv', $div);
$param[] = $ToolkitServiceObj->AddParameterChar('input', 5,'Sold', 'PrmSol', $sol);
$param[] = $ToolkitServiceObj->AddParameterChar('input', 4,'Ship', 'PrmShp', $shp);
$param[] = $ToolkitServiceObj->AddParameterChar('input', 5,'Dept', 'PrmDpt', $dpt)

$result= $ToolkitServiceObj->PgmCall('SRVCUS', "ACSCML", $param, null , array('func'=> "RTVILN") );
Posts: 1
Joined: Mon Nov 26, 2012 5:51 pm

Re: Return value from procedure

Postby aseiden on Thu Dec 06, 2012 7:20 am

I'll be happy to help.

What's the return value type? 20I0?

Posts: 873
Joined: Thu Apr 09, 2009 5:45 pm

Return to PHP Questions / Hints

Who is online

Users browsing this forum: No registered users and 2 guests