Previous Topic: Compiler and Utility FunctionsNext Topic: Batch Compiler Coding Considerations


Panels and Maps

What is a Map?

From the terminal operator's point of view, a map is a screen display that is used for input and output operations. From a map developer's point of view, the screen display viewed by the operator is the product of a map load module that is generated from entity occurrences in the data dictionary.

What Does the Batch Compiler Do?

The batch compiler is used to establish map-related entity occurrences in the data dictionary. The following entity occurrences are generated and maintained by the batch compiler:

Type of Occurrence

Specifies

Performs these functions

PANEL and related PFLD (panel field) occurrences

The screen layout for a map

 

The panel typically:

Specifies the device types on which the screen layout can display and establishes any special display conditions necessary for each device type

Assembles panel field occurrences that store the following information for individual fields:

  • Location by row and column
  • Characteristics such as display intensity or color
  • Values for literal fields

MAP and related MFLD (map field) occurrences

Usage information for a map

 

The map typically:

Specifies a PANEL occurrence on which the map occurrence is to be based

Specifies runtime events that occur when a map load module generated from the MAP and PANEL occurrences is executed, such as whether the keyboard is locked or unlocked

Specifies whether automatic editing and error-handling are available at runtime

Selects PFLD occurrences from the associated PANEL occurrence and specifies the following information for the fields in MFLD (map field) occurrences:

  • Type of field usage (that is, data, literal, message, page, or response field)
  • Predefined schema or work record elements to be linked with data fields.
  • Automatic editing, input, and output information for data fields

Mapping Language Statements

Two sets of mapping language statements that can be used to generate PANEL, PFLD, MAP, and MFLD occurrences are presented in "Batch Compiler Statements".

Panels, Maps, and Record Elements

The following figure illustrates the relationship between panels, maps, and record elements.

A panel defines a screen layout and a map associates panel fields with elements in records.