Work Areas Screen [ HP ALLBASE/4GL Developer Reference Manual Vol. 1 ] MPE/iX 5.0 Documentation
HP ALLBASE/4GL Developer Reference Manual Vol. 1
Work Areas Screen
This screen allows you to name a work area and specify the name of the
record layout or select list used to define the work area.
Screen Image
Field Descriptions
Work Area Name Enter the name for the work area (up to 16 characters).
Record Layout Name Enter the name of the record layout or select list
used to define the structure of the work area. The record layout or
select list must exist before you can define the work area. The record
layout or select list does not need to be generated before you define the
work area.
Function Keys
f1 Field Specs. Cancels the current screen and displays the
field specifications screen.
f2 Record Details Cancels the current screen and displays the
record layout details screen.
f3 Record Header Cancels the current screen and displays the
record layout header screen.
Additional Information
A work area is a data buffer that is similar to a file record buffer,
except that a work area is not associated with a data file. A work area
consists of a number of fields in a defined sequence. The structure of a
work area is defined by the record layout or select list specified on
this screen. The dictionary field specifications used to define the
fields on the record layout determine the attributes of the fields in the
work area.
To define a work area, you must first define a record layout or select
list that contains the dictionary field specifications you require in the
work area. You can then use this screen to assign a name to the work
area, and specify the record layout or select list for the work area.
You must generate the record layout or select list before the application
can use the work area.
HP ALLBASE/4GL automatically clears all work areas when the application
starts, and at the start of every process.
You can reference a field on a work area as W-field_name.work_area. The
term field_name is the dictionary field specification name, and work_area
is the work area name.
You can also reference the contents of a work area buffer as B-work_area
where work_area is the work area name. This form of referencing is only
valid in the MOVE command and the EXTERNAL command. You cannot use
substrings with this form of work area referencing.
MPE/iX 5.0 Documentation