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

4- 22
file when F2 is pressed (see line 13 in Figure 4-10).
11 This line describes the output record format for a delete
operation. A record is deleted in M-SOURCE when the user
presses F2 .
Using a Terminal in Full Screen Mode
When you have several fields of data to process using a terminal, you may
find it easier to work in full screen mode rather than line mode. Full
screen (or block) mode lets you read and display entire screens of data
at one time.
There are three software tools that let you use the terminal in full
screen mode; VPLUS, RPG Screen Interface (RSI) and the RSI CONSOLE
facility. VPLUS is a general-purpose forms management system that
interfaces with many programming languages. RSI is an RPG utility that
creates forms similar to those used on IBM S/34 and S/36. RSI CONSOLE
facility lets you use certain RSI functions for processing input files
only (CONSOLE files are ideal for simple data entry applications).
The following list compares the features of VPLUS and RSI:
VPLUS RSI
Uses actions and events to manage Uses standard RPG specifications to manage
input/output input and output
Can be used with other languages and Most easily used with RPG programs
applications
Does not let you use User Message Catalog Lets you use User Message Catalog files for
files for messages messages
Cannot dynamically change screen attributes Can dynamically change screen attributes
(for example, blinking and inverse video)
No automatic conversion to VPLUS Converts IBM S and D Specifications to
RSI-compatible format
No automatic conversion to VPLUS Automatically generates RPG program
specifications from RSI form files
This chapter explains how to use VPLUS, RSI and RSI CONSOLE files in RPG
programs. To help you compare VPLUS and RSI, the same program example is
used for each (the example differs only in how terminal input and output
is handled). The last three section in this chapter, starting with
"Enabling the BREAK Key," describe RPG features that you can use with
both VPLUS and RSI.
NOTE Although you can use most VPLUS features in an RPG program, some
are not available. This chapter and the
HP Reference Manual
describe the features that are available when you use the RPG
Interface to VPLUS.
Using VPLUS
When you use VPLUS in an RPG program, follow these procedures:
* Create a VPLUS form
Before using VPLUS to process data full screen mode, use the FORMSPEC
facility of VPLUS to create a screen form. When you create a form,
you determine the layout of fields on the screen and specify the type
of data each field holds. You can also enter titles and field
display characteristics.
* Define a VPLUS form