bms1
DESCRIPTION
TRANSCRIPT
![Page 1: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/1.jpg)
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.
![Page 2: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/2.jpg)
![Page 3: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/3.jpg)
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.
![Page 4: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/4.jpg)
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
![Page 5: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/5.jpg)
BMS - Map definition Macros
DFHMSD - Defines a Mapset
DFHMDI - Defines a map in a mapset
DFHMDF - Defines a field in a map
![Page 6: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/6.jpg)
The BMS macro is run through an assembler program to produce two maps.
Physical Map & Symbolic Map
BASIC MAPPING SUPPORT
![Page 7: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/7.jpg)
BASIC MAPPING SUPPORT
MAP GENERATION
Symbolic MapPhysical Map
Design Screen
Code Map
Assembler
-Load Library- Contains Literals
- Copy Library- Contains data Fields
![Page 8: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/8.jpg)
![Page 9: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/9.jpg)
![Page 10: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/10.jpg)
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
![Page 11: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/11.jpg)
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) =COBOL is usually coded.
![Page 12: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/12.jpg)
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.
![Page 13: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/13.jpg)
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
![Page 14: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/14.jpg)
BASIC MAPPING SUPPORT
TIOAPFX -Generates a 12 byte filler at the beginning of the symbolic map for control characters.
= YES
![Page 15: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/15.jpg)
BASIC MAPPING SUPPORT
DFHMDI Macro parameter
SIZE=(lines,columns), LINE=line-number , COLUMN=Column-number,
CTRL=(control-option...)
![Page 16: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/16.jpg)
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 macro.
![Page 17: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/17.jpg)
BASIC MAPPING SUPPORT
DFHMDF Macro parameter
POS=(LINE,COLUMN), INITIAL=' LITERAL' LENGTH=FIELD-LENGTH, ATTRB=(BRT|NORM|DRK,
PROT|ASKIP|UNPROT, NUM, IC, FSET), PICIN = ' PICTURE - STRING ' PICOUT =' PICTURE-STRING '
![Page 18: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/18.jpg)
Field Attributes
Field Intensity: NORM / BRT / DRK
Field protection attribute :
PROT / UNPROT / ASKIP
Field Characteristic : NUM
Initial Cursor Positioning : IC
Field Modification Indication : FSET
![Page 19: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/19.jpg)
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.
![Page 20: Bms1](https://reader035.vdocuments.site/reader035/viewer/2022081907/549cc67fac7959c92a8b481b/html5/thumbnails/20.jpg)
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