Wrap the RPG program in an external SQL stored procedure. Then you can call it using any SQL compatible driver. It will be much more portable this way.

Thanks,
Todd


-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of B Stone
Sent: Monday, October 7, 2019 2:51 PM
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxxxxxxxx>
Subject: Re: [WEB400] print an RPG report from a web page?

Should be as easy as making a call to the program. You just need to make sure the program that makes the call returns the appropriate response to the browser so it can report success/failure.

IWS should work, or straight CGI.

Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #1 <https://www.bvstools.com/mailtool.html>: Command and ILE Interfaces available which means easily sending email from your programs.

On Mon, Oct 7, 2019 at 1:43 PM Booth Martin <booth@xxxxxxxxxxxx> wrote:

We print/reprint a packing list for an order with an RPG program
PRPACK, and have done it for years. The suggestion has come up that
that should be, today, done on an Intranet. Seems reasonable to me.

Is there an example somewhere of an HTML or JavaScript way to "CALL
PRPACK 'ORD12345'"?

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



This message and any attachments are intended for the individual or entity named above. If you are not the intended recipient, please do not read, copy, use or disclose this communication to others. If you are not an addressee of this transmission, please notify the sender immediately by replying to the message and delete it from your system. Thank you.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.