HP RPG/XL Programmer's Guide (30318-90001)

2- 1
Chapter 2 Creating an RPG Program
You can create an RPG program using any editor or word processor that
produces a standard ASCII file.
For example, you can use EDITOR. EDITOR comes with your HP system,
produces a standard text file and is widely used for other applications.
Another popular editor is TDP. Instead of EDITOR or TDP, you may want to
use the RPG Interactive System Environment (RISE). RISE is specifically
designed for entering RPG programs and lets you use the entire screen.
It also provides interactive compiling and debugging features.
EDITOR and RISE are discussed briefly in the next two sections.
Using EDITOR to Create an RPG Program
EDITOR is a general-purpose line editor. You enter and modify lines in
your RPG programs one at a time. EDITOR may be useful for entering
simple and short RPG programs and for making modifications to those
programs. For longer programs, use RISE (discussed in the next section).
For details on using EDITOR, see the
EDIT/3000 Reference Manual
.
Using RISE to Create an RPG Program
RISE is an RPG utility that is ideal for entering moderate to large RPG
programs. Besides using it to enter programs, you can use it to
interactively compile and debug them as well. Though RISE may take some
extra time to learn, it is easier and faster to use than EDITOR.
RISE lets you enter and modify RPG programs in two different modes. In
line mode (similar to EDITOR), you work with individual lines. In screen
mode, you enter program specifications onto screen forms that resemble
the specification sheets themselves. RISE is user-friendly. You can
browse specifications, display errors together with their meanings and
undo delete operations.
For more information on RISE, see the
RPG Utilities Reference Manual
. To
become acquainted with the features of RISE, use the self-paced RISE
tour. To start the tour, enter these two commands:
:RUN RISE.PUB.SYS
>GET RISETOUR.PUB.SYS