HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
Bms1
1. BASIC MAPPING SUPPORT
Collection of assembler language macros
Macro An instruction which generates
additional code when passed through
an assembler program.
An interface between the terminal control and
application programs.
2.
3. BASIC MAPPING SUPPORT
Format Independence
The ability to send data to a device without having
to be concerned with the format in which the data
will be displayed
Device Independence
The ability of an application program being
written in such a way that it does not depend on
the physical characteristics of the devices.
4. BASIC MAPPING SUPPORT
CREATION OF MAPS
MAP Representation of one screen format
MAPSET One or a group of maps
With a name up to 7 characters
registered in the PPT
FIELDS Group of one or more characters
There are two type of Fields
1. Constant fields or Literal fields
2. Variable fields or Data Fields
5. BMS - Map definition Macros
DFHMSD - Defines a Mapset
DFHMDI - Defines a map in a mapset
DFHMDF - Defines a field in a map
6.
The BMS macro is run through an assembler
program to produce two maps.
Physical Map & Symbolic Map
BASIC MAPPING SUPPORT
10. BASIC MAPPING SUPPORT
DFHMSD Macro parameters
TYPE=&SYSPARM | DSECT | MAP | FINAL
L ANG=COBOL|ASM|PLI
MODE=IN | OUT | INOUT
TERM=terminal-type
CTRL=FREEKB | ALARM | FRSET
STORAGE=AUTO,
TIOAPFX=YES | NO
11. BASIC MAPPING SUPPORT
EXPLANATION OF TERMS IN SYNTAX
TYPE
=MAP :Creates a physical map
=DSECT :Creates a Symbolic map
=&SYSPARM : both PM & SM
=FINAL :Indicates the end of map set coding
LANG - Specifies the ProgrammIng language
(ASM,COBOL,PL/I or RPG)
12. BASIC MAPPING SUPPORT
MODE - Indicates the input/output operation
IN :For the input map
OUT :For the output map
INOUT :For the input/output map;
Used for maps involving both
input/output.
TERM - Specifies the type of terminal that can
be used with the map .
=3270 is preferred.
13. BASIC MAPPING SUPPORT
CTRL - Specifies a list of control options in
effect for each map in the map set,like:
FREEKB Free keyboard after each output
ALARM Sound audio alarm during output
FRSET Field Reset
STORAGE - Acquires a separate symbolic map
area for each map in the map set.
= AUTO
14. BASIC MAPPING SUPPORT
TIOAPFX -Generates a 12 byte filler at the
beginning of the symbolic map for control
characters.
= YES
16. BASIC MAPPING SUPPORT
EXPLANATION OF TERMS IN SYNTAX
SIZE - Specifies the size of the map in lines and
columns.
=(24,80) is usually coded for a 24*80 screen
LINE - Specifies the starting line number.
= 1 is usually coded.
COLUMN - Specifies the starting column number
= 1 is usually coded.
CTRL - Same as CTRL option for DFHMSD
18. Field Attributes
Field Intensity: NORM / BRT / DRK
Field protection attribute :
PROT / UNPROT / ASKIP
Field Characteristic : NUM
Initial Cursor Positioning : IC
Field Modification Indication : FSET
19. BASIC MAPPING SUPPORT
The Symbolic map contains:
Each data field with FIVE(5) suffixed
Suffixed I, O, A, L, F
The mapname suffixed with I & O
(both present if MODE=INOUT is coded)
For example mapname is ADDM (DFHMDI)
ADDMI for input group & ADDMO for out group
I - Data entered by the terminal operator and
received into the program.
O - Used to hold the output field for operations requiring
the send of a map.
20. BASIC MAPPING SUPPORT
A - one-byte field that contains the attribute
byte used during output procedures to override the
attribute field defined in the BMS map.
L - A half word binary field that contains the
length of data entered by the terminal operator.
F - one-byte flag field
Contains 0 or 1 it indicate where the data field is
modified or not