I have a situation where I need to display a webpage from within a rpg program. The idea is to simply have a command key to active this.
I've done this before, but the problem I'm running into with this webpage is length of the URL.
STRPCCMD is limited to I think 123 characters. I well past that.
I found a possible solution that looks something like this(taken from
http://www-01.ibm.com/support/docview.wss?uid=nas125cbd3c71c3cafd0862572d700525c13)
STRPCCMD PCCMD('del c:\temp\url.bat')
STRPCCMD PCCMD('cmd /c echo set first=
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/cl/strpccmd.htm? > c:\temp\url.bat')
STRPCCMD PCCMD('cmd /c echo set last=resultof=%22%73%74%72%70%63%63%6d%64%22%20 >> c:\temp\url.bat')
STRPCCMD PCCMD('cmd /c echo "C:\Program Files\Mozilla Firefox\firefox.exe" %first%%last% >> c:\temp\url.bat')
STRPCCMD PCCMD('start c:\temp\url.bat')
I thought this would be the answer, but apparently there is an issue here also. When I try to 'set last' with this
cmd /c echo set last=?Action=login&UserName=mike
It doesn't like the &UserName. There are actually more parameters in this string, I just included the first 2.
Can anyone suggest a way around this or another method to display the webpage when the URL is long?
Thanks
Mike
NOTICE: This message, including any attachment, is intended as a confidential and privileged communication. If you have received this message in error, or are not the named recipient(s), please immediately notify the sender and delete this message.
As an Amazon Associate we earn from qualifying purchases.