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

4-: 51
You can display and read the form in one of two ways. If you define
the file as a primary file, RSI performs input and output
automatically during the normal logic cycle. If you define the file
as a demand file, you control input and output by entering the
Calculation Specification operations EXCPT and READ.
In addition, to determine which command keys the user presses at run
time, enter Calculation Specifications to test the command key
indicators. If you need to know which function keys the user
presses, enter one or more Calculation Specifications to test the
values in the RSI STATUS array.
Creating an RSI Form. Figure 4-24 shows how a form is defined using
SIGEDITOR. This form is used in the following sections to illustrate how
RSI is used. The form is used to update the D-ACCOUNTS data set (see the
schema for the MARKET database in Figure 3-23).
Figure 4-24. Creating an RSI Form Using SIGEDITOR
In addition to defining the layout of the form, you must also assign a
name to the forms file and define certain processing requirements. For
example, you may want to process the form using exception output rather
than letting the processing be handled automatically by the RPG logic
cycle.
Figure 4-25 shows the SIGEDITOR Forms Specification screen that lets you
define these requirements.