×
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.
Tim,
The URL is not part of the DDS. You control the link
content behind the scenes, create the IFS web server document and then
use the STRPCCMD to have the PC client run the web browser using this
short URL document.
Shorturl.html: (sitting in IFS web server document location)
<html>
<head>
<meta http-equiv="Refresh"
content="0;url=
http://myserver.com/cgi-bin/areallylonglinkname.pgm?param
eter1=one¶meter2=2&etc=etc"
<
http://myserver.com/cgi-bin/areallylonglinkname.pgm?parameter1=one¶
meter2=2&etc=etc%22> />
</head>
</html>
Program to initiate the browser:
PGM PARM(&INLINK)
DCL VAR(&INLINK) TYPE(*CHAR) LEN(108)
DCL VAR(&LINK) TYPE(*CHAR) LEN(123)
STRPCO
MONMSG MSGID(IWS4010)
CHGVAR VAR(&LINK) VALUE('EXPLORER.EXE ' *CAT '"' +
*CAT &INLINK *TCAT '"')
STRPCCMD PCCMD(&LINK) PAUSE(*NO)
CALL BROWSER ('HTTP://myserver.com/shorturl.html')
The reason I suggest this method over passing in the URL through
STRPCCMD is the total command length is 132 characters for STRPCCMD.
Some URLs can be too long. The above assumes that you are using the
systems web server (we have Apache started but I think this could work
with the base HTTP web server if the document is static). Also, it
assumes that the PC client has the default file associations in tact.
I have redirected to web URL a Word document URL located on a network
share (i.e., \\system\share\document).
Thanks, Matt
As an Amazon Associate we earn from qualifying purchases.