Link to home
Start Free TrialLog in
Avatar of gmamoses
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&ssn=xxxxxxxxxx&ord=xxxxxxxxxx&cst=xxxxxxxxx'  


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.
                     
                   
                           
                     
                         
Avatar of Sriram_Penumathy
Sriram_Penumathy

1) Create a file in IFS or QDLS containing the command as .BAT file. please note that the naming convention for this .BAT file should be similar to the PC naming convention.
2) Run this file from STRPCCMD.
Avatar of Theo Kouwenhoven
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

Avatar of gmamoses

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?
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&ssn=xxxxxxxxxx&ord=xxxxxxxxxx&cst=xxxxxxxxx'  
')  

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
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?  
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
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=xxxxxxxxxx&ssn=xxxxxxxxxx&ord=xxxxxxxxxx&cst=xxxxxxxxx''  
)  

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/MyFile.File/MyMember.MBR')  
    TODIR('/MyDir')                                    
    TOOBJ(UserID.BAT)                                  

Regards,
Murph
ASKER CERTIFIED SOLUTION
Avatar of Member_2_276102
Member_2_276102

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
tliotta, your message might be long but being a novice it is more in line with what I was looking for.