Search code examples
phpibm-midrangerpg

Call RPG program from PHP


We have an AS/400 system. I am asked to look for a way to call RPG programs from PHP on our Apacher server. The only solution i found was installing zend server to AS/400 and using i5 PHP API Toolkit. Since I don't know how to use AS/400 and don't have access i haven't tried it yet.

We can connect to database and read, write from php. I am asking if there is any way to call a rpg program on our system from php code and send parameters, retrieve output.

I found there is JTOpen for Java. Maybe same thing for Php would work.


Solution

  • You can execute host programs as if they were stored procedures.

    For more information: iSeries Access ODBC: Stored Procedures