× 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.



This is how we did it:
/*****************************************************************************/
/* Launch Browser Window */
/*****************************************************************************/
/* Maximum Length of the PC Command is 123 characters. Therefore, the */
/* maximum lemgth of the URL passed to this program is 108 characters */
/* since 'start http:"//"' uses up 15 of the 123 characters. */
/*****************************************************************************/
PGM
DCL VAR(&URL) TYPE(*CHAR) LEN(108) +
VALUE('WWW.DHFSWIR.ORG')
DCL VAR(&PCCMD) TYPE(*CHAR) LEN(123)

MONMSG MSGID(CPF0000 MCH0000)

STRPCO
MONMSG MSGID(IWS4010)

CHGVAR VAR(&PCCMD) VALUE('start http:"//' *TCAT &URL *TCAT '"')
STRPCCMD PCCMD(&PCCMD) PAUSE(*NO)
ENDPGM

hth,

Dave B

"Michael Ryan" <michaelrtr@xxxxxxxxx> 05/23/08 11:28 AM >>>

Search the archives...there's been a fair amount of discussion about this.

On Fri, May 23, 2008 at 12:19 PM, Salter, James <JSalter@xxxxxxxxxx> wrote:
Does anyone have any experience with interfacing with a browser from the
system i?

I am trying to pull up a webpage with parameters (in this sample -
userid) and it stops on the webpage right after the ? field. Nothing
after the ? is passed to the page.

Does anyone have any suggestions or samples on how to do this?

We would potentially like to pull up maps, etc. from a system i
application.

STRPCO PCTA(*NO)
MONMSG MSGID(IWS4010)
STRPCCMD PCCMD('START http://www.mywebpage.com?&userid=My+Name') +
PAUSE(*NO)

Or would a RUNRMTCMD command be an better solution?

Thanks.
James Salter




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.