To extract the included source code you can use the menu entry Services/Copy
to file while RXT&T is being displayed by the view program and the
source code is the active window. The view program then creates a file named
TEXT.TMP in the current directory. If you selected the correct window
to copy, the TEXT.TMP file will contain the source code that is displayed
in RXT&T.
After that double click on to start the OS/2 editor and load TEXT.TMP.
Insert the necessary REXX comment marks beginning in the first column of
the first line of the file and save it with a descriptive filename and the
extension .CMD. (e.g., you might use a name like FILTER.CMD if
you save the REXX code in the chapter
Writing filter programs in REXX). At that point, you can double click
on the file to start a CMD window to test the REXX program. Another method
is to invoke the REXX program from the OS/2 command line by typing its name,
any necessary parameters, and pressing the ENTER key (Double click on to
start a CMD window to test the REXX program right now).
You can also just double click on to start the REXX program REXXTRY.CMD
to do some testing. Or double click on to start REXXTRY using PMREXX. (see
also Extend the program REXXTRY)
Note: By using a special environment variable, IPF_KEYS (see Using IPF Keys), you can have a small window containing the icons mentioned above always open. This window gives you quick access to the editor, command window, REXXTRY, PMREXX, and information on how to use them with the sample code in RXT&T. Alternatively, you can display this window by clicking on the icon [Autolink] Menu
in the window with the source code.
See the section Using IPF Keys for information on automatically opening the window (also called the "codemenu") whenever you view source code samples in RXT&T. Also, see the section Icons Used in REXX Tips & Tricks for a list of the "shortcut" icons in this document.