× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Michael,

If you plan to use PHP with IBM i then here is how to do it using the new toolkit:
http://www.alanseiden.com/2012/12/27/service-program-procedures-with-php-toolkit-for-ibm-i/

Here is the key line:

/* Call service program procedure.
* In this example, assume your program is MYLIB/MYPGM and has a procedure/function 'myproc'
* (procedure name is case-sensitive).
* Note: specify optional procedure name in parameter 5, an array with associative index 'func'.
*/
$result = $conn->PgmCall('MYPGM', 'MYLIB', $params, $retParam, array('func'=>'myproc'));


There is no practical limit to the number of parameters that can be passed.

Alan

Michael Ryan <mailto:michaelrtr@xxxxxxxxx>
December 27, 2012 12:43 PM
Looking for direction here. I've been casting around, but haven't found the
answer (or don't know that I've found it). I can call a procedure from a
service program from PHP, right? Is there a limit to the number of parms
that can be passed?

Is a stored procedure a better way to go? I'm thinking that it may be,
especially since a stored procedure can be called by different interfaces
(PHP, ODBC, etc.). Does this make sense?

Thanks!

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.