RATE THIS ANSWER
+1
Click to Vote:
1
0
Last Answered:
Feb 25 2008 11:05 AM GMT
by Sloopy
Well, you don't want much, do you?
Bear with me, because I am doing this for the first time as I write - maybe someone else could correct any errors that creep in....
To run a PC program from the iSeries you first need to run the STRPCO command from the iSeries. This should start a command session between the iSeries ans the PC running the Client Access session in which you entered the command. For any iSeris-PC connection, you only need to do this once.
Now you can use the STRPCCMD command. Your program can use QCMDEXC to do this, but to begin with you can test from a command line.
The STRPCCMD command takes a PC command parameter which is a PC path and object name, e.g.
STRPCCMD PCCMD('j:\NICE\SQL\NiceMail.doc') PAUSE(*NO)
The PAUSE(*NO) parameter lets the iSeries session get on with some work while the PC program is running. PAUSE(*YES) holds the iSeries session in input-inhibited state until the PC program stops running.
The path in the example is to a Word document in a folder on a network drive. The full path has to be expressed in the DOS 8.3 naming convention, which can be inconvenient if you routinely use long folder names.
Keep your help documents on a network drive so that you don't have to keep a copy on each PC.
Now create an iSeries file to contain the document names. Use this file when the User presses F1 - the program name is the key to the record, and the document name is added to the STRPCCMD parameter string, and QCMDEXC executes it. Don't forget to run the STRPCO command in the iSeries session first.
An annoying DOS box appears while the PC command is running. You can change the defaults for this box, setting all values to 1, which makes it very small but does not get rid of it. Oh, well - can't have everything.
Do some experiments, and please let me know how you get on!
JB