Question

  Asked: Feb 21 2008   2:59 PM GMT
  Asked by: JAC


Word document/PDF used as Help text


AS/400, RPGILE, Help text, iSeries development

I am wondering if anyone knows of a simple way to solve my problem.
We are creating help text documents in word/PDF and want to use those as the help text when the user presses CMD-Help on the RPGILE programs.
i.e. when user presses cmd1 for help they will get a nice documented helptext with screens and so on.
Please HELP and Thank YOU!

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
+1
Click to Vote:
  •   1
  •  0



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
  • AddThis Social Bookmark Button

Browse more Questions and Answers on AS/400.

Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

JAC  |   Feb 22 2008  9:03PM GMT

Thanks JB i will try it and let you know.