PGM
DCL VAR(&URL) TYPE(*CHAR) LEN(108) +
VALUE('WWW.GOOGLE.COM')
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
From:
"Robert Ostrowski" <Bob.Ostrowski@xxxxxxxxxxxxxxxx>
To:
<midrange-L@xxxxxxxxxxxx>
Date:
08/27/2009 08:42 AM
Subject:
STRPCCMD command to open a URL from Client Access Session
Sent by:
midrange-l-bounces@xxxxxxxxxxxx
Can anybody tell me why I can't get this to work using a variable for
the URL? Instead of going to the web site in the &URL variable,
the browser opens up to whatever the home page is set to. If I hard
code the HTTP://...... It will work.
DCL VAR(&URL) TYPE(*CHAR) LEN(60)
MONMSG IWS4010
CHGVAR VAR(&URL) VALUE('HTTP://WWW.GOOGLE.COM')
STRPCO PCTA(*NO)
STRPCCMD PCCMD('"C:\Program Files\Internet Explorer\IEXPLORE.EXE" +
&URL')
Bob Ostrowski | Senior Programmer/Analyst
TRAINOR GLASS COMPANY | National - IT
11901 S. Austin Ave. | Alsip, IL 60803
T 708.293.4218 | F 708.293.6218
bob.ostrowski@xxxxxxxxxxxxxxxx
<mailto:firstname.lastname@xxxxxxxxxxxxxxxx> | www.trainorglass.com
<
http://www.trainorglass.com>
Project Management On-Line <
http://webapps.trainorglass.com/> | View
your project's progress and communicate with your project manager
As an Amazon Associate we earn from qualifying purchases.