Scott...do you call the stored proc from a green screen program as
well? If so, how do you do that? CLI? Got an example? Thanks!

Also, Zend acknowledged a problem in ZendCore for using the i5_xxx()
routines and stored procedures. They produced a fix that eliminated
error messages, but it' still not quite right (not returning the
result set). DB2 functions would be the way to go with this.

On Wed, Jul 9, 2008 at 5:42 PM, Scott Klement <web400@xxxxxxxxxxxxxxxx> wrote:
When I do this sort of thing, I set up my RPG programs as stored
procedures and then just call them from an SQL statement.

Another approach would be to set up the RPG logic as web services.

Or, you could use the i5_xxx() routines from PHP -- but personally, I
prefer to stay clear of that, since web services or stored procedures
are very easy and can be run from anywhere, whereas the i5_xxx routines
can only be used from PHP, and even in the PHP world they're obscure.


elehti@xxxxxxxxxxxxxxxxxx wrote:
PHP and SQL web developer re-creates all business logic found in RPG
programs.

Our web developer for our Customer Relationship Management (CRM) system
on our intranet (on a Wintel server) wants to re-create in PHP (or Java)
and SQL the same business logic and business rules that currently exist
on our System i in an RPG program. The RPG program computes each
customer's price from five data files on our System i. He envisions
doing an SQL SELECT statement that joins all five files together as
needed.

Our web developer has no understanding of how to write a browser
application that submits parameters to an RPG program on the System i
and retrieves the result back in a data queue or data file for him to
display on the HTML page.

What resource or technical book/document can you show me that shows that
web developers can retrieve data from RPG programs.

Thanks,
EricL




--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



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.