AS/400: I’m trying to call a RPG program from PHP

341995 pts.
Tags:
AS/400
PHP
RPG Program
Zend
We're currently using an AS/400 system. I was asked by my boss to to look for a way to call RPG programs from PHP on our Apache server. The only solution I've come up with was installing Zend server to AS/400 and using the i5 PHP API Toolkit. Since I don't fully understand AS/400, I haven't tried it out yet.

We can connect to the database / read and write from PHP. But I'm just trying to figure out a way to call a RPG program on our system from PHP code and send parameters, retrieve output. Thank you!

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta

    The question seems almost contradictory, but I think it's because it leaves out a couple details. You say you haven't tried Zend Server and its PHP. But then you say "We can connect to the database / read and write from PHP." So, have you tried PHP or not?

    I assume that that means you run PHP on some other system and use it to connect to the database on your AS/400.

    Is there are reason you need to call RPG programs? Or is it currently just experimenting? You could wrap an RPG program with a stored proc and continue database calls. Or you might create various web service calls. There are quite a few possibilities, but they might all depend on what any objectives might be.

    Tom

    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following