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

4- 50
8 This line begins the subroutine that retrieves the form from the
forms file.
9 This subroutine displays the VPLUS form retrieved in the
subroutine, GETSCR.
10 This line begins the operations that check for VPLUS edit
errors.
11 This subroutine displays messages in the VPLUS message window.
12 This is the output record for displaying VPLUS form data.
13 This is the output record for displaying messages in the VPLUS
message window.
14 This is the last line of Output Specifications. Following it
are the values for the MSG and LBL arrays.
Using a Terminal in Full Screen Mode (Continued)
Using the RPG Screen Interface (RSI)
RSI is a unique forms handling facility designed to work exclusively with
RPG. In many cases, you can have RSI perform screen handling
automatically during normal logic cycle processing. If you're using the
RSI file for a simple input application, you may prefer to use RSI
CONSOLE files instead of the regular RSI files that use the full
capabilities of RSI (for information on RSI CONSOLE files, see "Using RSI
CONSOLE Files").
To use RSI in an RPG program, perform the following steps (the steps are
discussed in detail in the following sections in this chapter):
* Create the RSI form
Before using RSI to process data in full screen mode, use SIGEDITOR
(see the
RPG Utilities Reference Manual
) to create a screen form.
When creating the form, you specify headings and titles, where the
data fields are located on the screen, the type of data each field
holds and which function and command keys are used.
* Define an RSI form
When you use SIGEDITOR to define an RSI form, you can have SIGEDITOR
generate the RPG specifications for the form. You then include those
specifications in the RPG program, modifying them when necessary.
Whether or not you or SIGEDITOR creates the specifications, they must
be entered as described below:
File Description Specifications -
These specifications define the file as an RSI WORKSTNR file and,
optionally, the name of the forms file.
Input Specifications -
These specifications define the fields that are used for input.
Output Specifications -
These specifications name the RSI form (in the forms file) to be used
and the data for the fields to be displayed. You can also include a
field for errors and other messages.
* Display and Read the RSI form
Calculation Specifications -