gmamoses
asked on
Alternate method of accessing iexplore.exe w/o STRPCCMD due to string length limitation
Are there any other methods of calling iexplore.exe from the iSeries without using the STRPCCMD. The string limitation (123 bytes) does not allow the sending of enough parameters. The call looks something like this:
'"C:\Program Files\Internet Explorer\IEXPLORE.EXE" HTTP://DEV:89/DEV/P13103/ CC_CNT_ENT.PHP?' +
'cmp=333&usr=xxxxxxxxxx&ss n=xxxxxxxx xx&ord=xxx xxxxxxx&cs t=xxxxxxxx x'
I have posted this question on other iSeries websites and have received no response, please help and be as detailed as possible since I am new to this process.
'"C:\Program Files\Internet Explorer\IEXPLORE.EXE" HTTP://DEV:89/DEV/P13103/ CC_CNT_ENT.PHP?' +
'cmp=333&usr=xxxxxxxxxx&ss
I have posted this question on other iSeries websites and have received no response, please help and be as detailed as possible since I am new to this process.
If you are using Client Access, CA can do this for you.
change the setup of Client Access by menu:
Edit = Preferences = Hotspots =
Now check Execute URL and (if you like) 3-D Button.
and click Ok
Now if you show a HTML in an output field (not input) then you can click it.
you can try to edit a source file and add to it : http://www.google.com.
If you now view this source, this text is changed into a button or clickable link.
If the HTTP:.... text is to long, you can redirect it via your own webserver and put in the text on screen:
Http:www.MyServer.com/AS400_1.HTML or whatever
Regards,
Murph
change the setup of Client Access by menu:
Edit = Preferences = Hotspots =
Now check Execute URL and (if you like) 3-D Button.
and click Ok
Now if you show a HTML in an output field (not input) then you can click it.
you can try to edit a source file and add to it : http://www.google.com.
If you now view this source, this text is changed into a button or clickable link.
If the HTTP:.... text is to long, you can redirect it via your own webserver and put in the text on screen:
Http:www.MyServer.com/AS400_1.HTML or whatever
Regards,
Murph
ASKER
I really appreciate the responses; however, I have a couple of questions
1) In the case of the response from Sriram, I probably did not make myself clear. If I create a .BAT file in the IFS to house the command, how do I pass the parameters to the command. They will change based on who the user is and the iSeries session the user is accessing from (multi-session) and the iSeries process the call is coming from.
2) In the case of Murphey, does your solution mean that every Client that tries to execute this command from a green screen has to have Client Access running on their machine. Also, we have very limited space on the screens so there is not enough room to place a field large enough to hold the command, how would you suggest we handle this.
3) To both, please remember that I am a novice and it would be very beneficial to me if you could provide code demonstrating your solution, i.e. can I create the BAT file in the IFS on the fly?
1) In the case of the response from Sriram, I probably did not make myself clear. If I create a .BAT file in the IFS to house the command, how do I pass the parameters to the command. They will change based on who the user is and the iSeries session the user is accessing from (multi-session) and the iSeries process the call is coming from.
2) In the case of Murphey, does your solution mean that every Client that tries to execute this command from a green screen has to have Client Access running on their machine. Also, we have very limited space on the screens so there is not enough room to place a field large enough to hold the command, how would you suggest we handle this.
3) To both, please remember that I am a novice and it would be very beneficial to me if you could provide code demonstrating your solution, i.e. can I create the BAT file in the IFS on the fly?
Hi
create a shiortcut to Internext explorer in c:\
ie C:\ixp.lnk
you can then run the command as
STRPCCMD PCCMD('"C:\ixp.lnk HTTP://DEV:89/DEV/P13103/ CC_CNT_ENT.PHP?' +
'cmp=333&usr=xxxxxxxxxx&ss n=xxxxxxxx xx&ord=xxx xxxxxxx&cs t=xxxxxxxx x'
')
which is with-in the limit
dave
create a shiortcut to Internext explorer in c:\
ie C:\ixp.lnk
you can then run the command as
STRPCCMD PCCMD('"C:\ixp.lnk HTTP://DEV:89/DEV/P13103/ CC_CNT_ENT.PHP?' +
'cmp=333&usr=xxxxxxxxxx&ss
')
which is with-in the limit
dave
Hi gmamoses,
In the case of Sriram, you can write the .BAT file on the moment you need it, eventually you can give the .BAT file the name of the user-ID.BAT, then you dont need to create it per user, but the job will do when a user starts the program.
In case of the Clienat Access solution... yes every user needs CA on his/her computer.
Regard,
Murph
In the case of Sriram, you can write the .BAT file on the moment you need it, eventually you can give the .BAT file the name of the user-ID.BAT, then you dont need to create it per user, but the job will do when a user starts the program.
In case of the Clienat Access solution... yes every user needs CA on his/her computer.
Regard,
Murph
ASKER
Thanks daveslater and murphey2, I appreciate both of your comments
1) daveslater, you are correct about shortening the string in some fashion which will work for this project but when one of my associates or I have another project that requires a longer string we will be in the same situation.
2) murphey2, I have not tried your solution regarding the .BAT file but I would like to test it out. I think since our users can have multiple sessions, I will have to name the BAT file based on the session id instead of the user id. Can you tell me how to do this from an RPG program or a CL on the iSeries?
1) daveslater, you are correct about shortening the string in some fashion which will work for this project but when one of my associates or I have another project that requires a longer string we will be in the same situation.
2) murphey2, I have not tried your solution regarding the .BAT file but I would like to test it out. I think since our users can have multiple sessions, I will have to name the BAT file based on the session id instead of the user id. Can you tell me how to do this from an RPG program or a CL on the iSeries?
gmamoses:
First, if you go Start->Run on your Windows desktop, type [http://www.google.com] for the command and press [enter], what result do you get?
Tom
First, if you go Start->Run on your Windows desktop, type [http://www.google.com] for the command and press [enter], what result do you get?
Tom
ASKER
In response to tliota I don't know what your point is. I don't think your response is related to the question or I'm not understanding what your point is.
Hi gmamoses,
By typing www.google.com in your run box, you can check if IE is somwhere in your path, in that case you simply can make a command like:
STRPCCMD PCCMD('HTTP://DEV:89/DEV/P13103/ CC_CNT_ENT.PHP?cmp=333&usr =xxxxxxxxx x&ssn=xxxx xxxxxx&ord =xxxxxxxxx x&cst=xxxx xxxxx''
)
The .BAT version can be written as file and then copied with the CPY Command.
The CPY command requires a full path of your AS/400 file location e.g.
CPY OBJ('QSYS.LIB/MyLib.Lib/My File.File/ MyMember.M BR')
TODIR('/MyDir')
TOOBJ(UserID.BAT)
Regards,
Murph
By typing www.google.com in your run box, you can check if IE is somwhere in your path, in that case you simply can make a command like:
STRPCCMD PCCMD('HTTP://DEV:89/DEV/P13103/ CC_CNT_ENT.PHP?cmp=333&usr
)
The .BAT version can be written as file and then copied with the CPY Command.
The CPY command requires a full path of your AS/400 file location e.g.
CPY OBJ('QSYS.LIB/MyLib.Lib/My
TODIR('/MyDir')
TOOBJ(UserID.BAT)
Regards,
Murph
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
tliotta, your message might be long but being a novice it is more in line with what I was looking for.
2) Run this file from STRPCCMD.