SlideShare a Scribd company logo
CICS - Basic Mapping Support
DAY 1 - SESSION 3
Updated in Nov 2004
Session 3 : ObjectivesTo Understand the
Screen classification and Primary functions of BMS
BMS Macros - Mapsets, Maps and Fields and their attributes
Physical and Symbolic maps and their Assembly
BMS I/O operations - SEND and RECEIVE Maps
Cursor positioning on the screen
Field attribute modification facility – MDT & Symbolic
override
CICS Program Design
The User interface for CICS
programs is implemented
using Basic Mapping Support
(BMS)
BMS is a standard facility
provided by CICS, to deal with
the formatted screen
operations
Basic Mapping Support - BMS
Screen defined through BMS is called a MAP
Collection of one or more maps – MAPSET
◦assembler language program that defines the format of the
maps that are used by a program
BMS - Primary Functions
Device independence
Constant Information Handling
Access to data fields of the Screen
Terminal Paging
Message Routing
BMS - Sample Screen
ITEM-NO : XXXXXXXXXX
NAME : XXXXXXXXXXXXXXXXXXXXXXXX
QUANTITY : XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
F1=Help F3=Exit F12=Cancel
Constant Field(protected)
Data Entry Field(Unprotected)
Data Entry Field(Unprotected)
Auto Skip Field
Stopper Field
Message Field
BMS - Field Types in Sample
Layout
ITEM-NO : XXXXXXXXXX
NAME : XXXXXXXXXXXXXXXXXXXXXXXX
QUANTITY : XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
F1=Help F3=Exit F12=Cancel
Legend :
: Attribute byte : Autoskip Field : Stopper Field
Basic Mapping Support - Map
Types
 Physical map
•Is a load module that contains the screen
locations of data the BMS needs
 Symbolic map
•Is a data structure, using which, fields can
be referred to in the CICS application
program
BMS - Map Definition Macros
DFHMSD - Defines a Mapset
DFHMDI - Defines a Map in a Mapset
DFHMDF - Defines a field in a Map
BMS - Map Definition Macros
DFHMSD Mapset Definition - Start
DFHMDI Map Definition - Map 1 Map 1
DFHMDF Field Definition in a Map - Field 1
DFHMDF Field Definition in a Map - Field 2
……
……
DFHMDI Map Definition - Map 2 Map 2
DFHMDF Field Definition in a Map - Field 1
DFHMDF Field Definition in a Map - Field 2
……
……
DFHMSD Mapset Definition - End
BMS Macros - Rules
Col. Col. Col. Col
1 9 16 72
+-------+---------+---------------------------------+
LABEL Op-Code Parameters separated continuation
by commas(parm1=..) char Col.72
Example
MAPSTNM DFHMSD TYPE=MAP,MODE=INOUT, X
LANG=COBOL,TIOAPFX=YES
BMS - DFHMSD Macro
setname DFHMSD TYPE={ &SYSPARM | DSECT | MAP },
MODE={ IN | OUT | INOUT },
LANG={ASM | COBOL | C | PLI },
TERM=terminal_type
STORAGE=AUTO,
TIOAPFX={ YES | NO },
CTRL=(ctrl1,ctrl2...)
Example.
col col col col
1---------------9-------------16---------------------------------------------------------------
72
ACCTSET DFHMSD TYPE=MAP,MODE=INOUT,LANG=COBOL, X
STORAGE=AUTO,TIOAPFX=YES
BMS - DFHMSD Macro
(cont’d)
Extended Attributes
MAPATTS = (COLOR,HILIGHT)
DSATTS = (COLOR,HILIGHT)
EXTATT = {YES, NO, MAPONLY }
- To define color, high intensity, etc., as per CUA standards.
- Results in additional variables for each attribute in the symbolic
map.
BMS - DFHMDI Macro
mapname DFHMDI SIZE=(lines,columns),
LINE=line_number,
COLUMN=column_number,
JUSTIFY={ LEFT | RIGHT },
CTRL(ctrl1,ctrl2...)
Example.
MENUMAP DFHMDI SIZE(24,80),LINE =1,COLUMN =1, X
JUSTIFY=LEFT,CTRL(ALARM,FREEKB)
BMS - DFHMDF Macro
fldname DFHMDF POS=(line,column),
LENGTH=number,
INITIAL=‘text’,
ATTRB=(attr1,attr2,attr3,attr4,attr5)
OCCURS=number,
Examples.
1. ITEM DFHMDF POS(13,16),LENGTH=6,ATTRB(UNPROT,NUM)
2. DFHMDF POS(15,5),LENGTH=10,INITIAL=‘QUANTITY :’, X
ATTRB=ASKIP
BMS - DFHMDF Macro - Field
Attributes
Field Attributes
◦ Field Intensity : NORM / BRT / DRK
◦ Field protection attribute : PROT / UNPROT / ASKIP
◦ Field Characteristic : NUM
◦ Initial Cursor Positioning : IC
◦ Field Modification Indication : FSET
BMS - MDTs and their
Manipulation
MDT indicates whether a field is modified or not
MDT on will ensure that data is received into the program
MDTs can be turned on by
Specifying the FSET attribute in the physical map
Setting the attribute byte to FSET in the symbolic map
Keying data into the field
BMS - MDT manipulation -
FRSET
an attribute of DFHMSD macro
turns off all MDTs on the screen before sending a
map
requires the physical map field attribute or the
symbolic override to control the MDT status
BMS - Ending a Mapset
definitionCol. Col. Col. Col
1 9 16 72
+-------+---------+----------------------------+
DFHMSD TYPE=FINAL
END
Preparing Physical & Symbolic
Maps
MAP DEFINITION
MACROS
ASSEMBLE
LINK EDIT
ASSEMBLE
PHYSICAL
MAP
SYMBOLIC
MAP
LOAD LIBRARY
COPY LIBRARY
BMS - Symbolic Map ContentsTwo 01-level items generated based on map name
01-level Item names suffixed with “I” or “O” for Input &
Output respectively
Additional level items defined for
◦ Field for Length
◦ Field for Attribute
◦ Field for Modified Data Indication
◦ Field for Input data
◦ Field for Output Data.
01-level Item for Output REDEFINES Input area.
BMS - Sample Map Layout
NAME : ---------------------
ITEM-NO : ----------
QUANTITY : ----------
8 19 49
8
29
10
12
COL
ROW
BMS - Code for the Sample Layout
MAPSETS DFHMSD TYPE=&SYSPARM,MODE=INOUT,TERM=ALL, X
LANG=COBOL,TIOAPFX=YES,STORAGE=AUTO
MAPSMP DFHMDI SIZE(24,80),LINE=1,COLUMN=1
DFHMDF POS(8,7),LENGTH=10,INITIAL=‘NAME :’, X
ATTRB=ASKIP
NAME DFHMDF POS(8,18),LENGTH=20,ATTRB(UNPROT,IC)
DFHMDF POS(8,40),LENGTH=1,ATTRB=PROT
DFHMDF POS(10,7),LENGTH=10,INITIAL=‘ITEM NO :’, X
ATTRB=ASKIP
ITEM DFHMDF POS(10,18),LENGTH=6,ATTRB=NUM)
DFHMDF POS(10,25),LENGTH=1,ATTRB=ASKIP
DFHMDF POS(12,7),LENGTH=10,INITIAL=‘QUANTITY :’, X
ATTRB=ASKIP
QTY DFHMDF POS(12,18),LENGTH=6,ATTRB=NUM
DFHMDF POS(12,25),LENGTH=1,ATTRB=PROT
DFHMSD TYPE=FINAL
END
BMS - Symbolic Map for the Sample
Layout
01 MAPSMPI
02 FILLER X(12).
02 NAMEL S9(4) COMP.
02 NAMEF PIC X
02 FILLER REDEFINES NAMEF.
03 NAMEA PIC X.
02 NAMEI PIC X(20).
02 ITEML S9(4) COMP.
02 ITEMF PIC X
02 FILLER REDEFINES ITEMF.
03 ITEMA PIC X.
02 ITEMI PIC X(06).
02 QTYL S9(4) COMP.
02 QTYF PIC X
02 FILLER REDEFINES QTYF.
03 QTYA PIC X.
02 QTYI PIC X(06).
01 MAPSMPO REDEFINES MAPSMPI.
02 FILLER PIC X(12).
02 FILLER PIC X(3).
02 NAMEO PIC X(20).
02 FILLER PIC X(3).
02 ITEMO PIC X(06).
02 FILLER PIC X(3).
02 QTYO PIC X(06).
BMS - I/O operations
BMS COMMANDS FOR I/O OPERATIONS
•SEND MAP
•RECEIVE MAP
•SEND CONTROL
•SEND TEXT
•SEND PAGE
BMS - SEND MAP command
EXEC CICS SEND
MAP (map_name)
MAPSET(mapset_name)
[FROM(data-area)]
[CURSOR(data-value)]
[ERASE|ERASEUP]
[DATA|MAP ONLY]
[ALARM]
END-EXEC
BMS - SEND MAP command
(Contd.)
Data to be prepared before SENDing the MAP :
◦ Field Length : fieldname +L
◦ Field Attribute : fieldname +A
◦ Field Content : fieldname +O
BMS - SEND MAP command
(Contd.)
EXEC CICS SEND MAP(‘MAPSMP’)
MAPSET(‘MAPSETS’)
MAPONLY
END-EXEC.
EXEC CICS SEND MAP(‘MAPSMP’)
MAPSET(‘MAPSETS’)
DATAONLY
END-EXEC.
PHYSICAL MAP
OUTPUT DATA STREAM
SYMBOLIC MAP
OUTPUT DATA STREAM
BMS - SEND MAP command
(Contd.)
SENDING MAP WITH NEITHER MAPONLY NOR DATA ONLY
EXEC CICS SEND MAP(‘MAPSMP’)
MAPSET(‘MAPSETS’)
END EXEC.
SYMBOLIC MAP PHYSICAL MAP
OUTPUT DATA STREAM
BMS - RECEIVE MAP
command
EXEC CICS RECEIVE
MAP(map_name)
MAPSET(mapset_name)
[INTO (data-area)]
ASIS
END-EXEC.
BMS - RECEIVE MAP
command
THE RECEIVE MAP COMMAND RECEIVES DATA
FROM THE TERMINAL. THE SYMBOLIC MAP WILL
CONTAIN THE DATA.
DATA IN THE SYMBOLIC MAP
fieldname+L Contain the length of the input data.
fieldname+F Flag field- Set to x’80’ or X’82’ if the field is modified,
but cleared.
fieldname+I Contains the input data. Filled with x’00’ if no data is
entered.
BMS - Changing Field
Attributes
Need for changing Field attributes
◦ Highlighting fields in error
◦ Protecting fields during deletion
IBM Supplied copy library DFHBMSCA contains all
possible attribute combinations
Can be copied into the application program
BMS - Cursor Positioning
Cursor positioning required for positioning the
cursor during SEND
◦ In the first data entry field during data entry
◦ In the first field resulting in data entry error
Cursor Positioning Techniques :
◦ Initial cursor positioning
◦ Direct cursor positioning
◦ Symbolic cursor positioning
BMS - Cursor Positioning
(Contd.)Static positioning (Initial)
• If IC option is specified in the ATTRB field of DFHMDF macro the cursor will be
placed at this field
Dynamic/Symbolic positioning
• Place -1 into the field length field (“L” suffix). cursor will be placed in this field.
Dynamic/Relative positioning. CURSOR (data-value) option is
used
BMS - Detecting Cursor
Position
The EIB field EIBCPOSN can be used to determine
where the cursor was positioned on the screen
On a RECEIVE, CICS updates the EIB with the following
information:
The screen cursor position relative to zero is placed in
EIBCPOSN
The name of the input key the terminal operator pressed
is placed in the field EIBAID.
BMS - AIDKEY
WORKING STORAGE SECTION.
COPY DFHAID.
PROCEDURE DIVISION.
EXEC CICS RECEIVE MAP(‘MAPSMP’) MAPSET(‘MAPSETS’) END-EXEC
EVALUATE TRUE
W HEN EIBAID = DFHPF12
EXEC CICS RETURN END-EXEC
W HEN EIBAID = DFHENTER
PERFORM 1000-PROCESS-DATA
THRU 1000-PROCESS-DATA-EXIT
W HEN EIBAID = OTHER
MOVE ‘Invalid Key Pressed’ TO MESSAGEO
END-EVALUATE.
Copybook containing the
definitions for AID keys
Direct Cursor Positioning :
ExampleEXEC CICS SEND
MAP(.........)
MAPSET(....)
CURSOR(100)
ERASE
END-EXEC.
WORKING-STORAGE SECTION
COPY DFHAID.
.......
PROCEDURE DIVISION.
EXEC CICS RECEIVE
MAP(.........)
MAPSET(....)
INTO (…..)
END-EXEC.
IF EIBAID=DFHPF12 THEN
........
IF EIBAID=DFHENTER THEN
.......
IF EIBCPOSN LESS THAN 100 THEN
........
BMS - SEND/RECEIVE -
Example
SEND MAP (‘MAPSMP’)
MAPSET(‘MAPSETS’)
MAPONLY
RECEIVE MAP (‘MAPSMP’)
MAPSET(‘MAPSETS’)
NAME :
ITEM-NO :
QUANTITY :
NAME : BOLT
ITEM-NO : 0023
QUANTITY : 5000
Session 3 : Summary
Primary functions of BMS
Screen classification; Mapsets, Maps and Fields;
macros and their attributes
Changing Field Attributes - MDT manipulation
Preparation of Physical and Symbolic maps
Sample Layout of Symbolic map
BMS I/O operations - SEND and RECEIVE maps
Cursor positioning

More Related Content

What's hot

Cics faqs
Cics faqsCics faqs
Cics faqs
kapa rohit
 
CICS error and exception handling-recovery and restart-session 6
CICS error and exception handling-recovery and restart-session 6CICS error and exception handling-recovery and restart-session 6
CICS error and exception handling-recovery and restart-session 6
Srinimf-Slides
 
Cics cheat sheet
Cics cheat sheetCics cheat sheet
Cics cheat sheetRafi Shaik
 
Cics application programming - session 2
Cics   application programming - session 2Cics   application programming - session 2
Cics application programming - session 2
Srinimf-Slides
 
ALL ABOUT DB2 DSNZPARM
ALL ABOUT DB2 DSNZPARMALL ABOUT DB2 DSNZPARM
ALL ABOUT DB2 DSNZPARM
IBM
 
Z OS IBM Utilities
Z OS IBM UtilitiesZ OS IBM Utilities
Z OS IBM Utilities
kapa rohit
 
Top jcl interview questions and answers job interview tips
Top jcl interview questions and answers job interview tipsTop jcl interview questions and answers job interview tips
Top jcl interview questions and answers job interview tips
jcltutorial
 
Mvs commands
Mvs commandsMvs commands
MVS ABEND CODES
MVS ABEND CODESMVS ABEND CODES
MVS ABEND CODES
Nirmal Pati
 
Mainframe refresher-part-1
Mainframe refresher-part-1Mainframe refresher-part-1
Mainframe refresher-part-1vishwas17
 
Z4R: Intro to Storage and DFSMS for z/OS
Z4R: Intro to Storage and DFSMS for z/OSZ4R: Intro to Storage and DFSMS for z/OS
Z4R: Intro to Storage and DFSMS for z/OS
Tony Pearson
 
Cics testing and debugging-session 7
Cics testing and debugging-session 7Cics testing and debugging-session 7
Cics testing and debugging-session 7
Srinimf-Slides
 
100 COOL MAINFRAME TIPS
100 COOL MAINFRAME TIPS100 COOL MAINFRAME TIPS
100 COOL MAINFRAME TIPS
Nirmal Pati
 
Introduction of ISPF
Introduction of ISPFIntroduction of ISPF
Introduction of ISPF
Anil Bharti
 
Ipl process
Ipl processIpl process
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OSPractical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Cuneyt Goksu
 
Xdc command-to-print-job-output-and-syslog-from-sdsf
Xdc command-to-print-job-output-and-syslog-from-sdsfXdc command-to-print-job-output-and-syslog-from-sdsf
Xdc command-to-print-job-output-and-syslog-from-sdsfMaintec Technologies Inc.
 

What's hot (20)

Cics faqs
Cics faqsCics faqs
Cics faqs
 
CICS error and exception handling-recovery and restart-session 6
CICS error and exception handling-recovery and restart-session 6CICS error and exception handling-recovery and restart-session 6
CICS error and exception handling-recovery and restart-session 6
 
Cics cheat sheet
Cics cheat sheetCics cheat sheet
Cics cheat sheet
 
Cics application programming - session 2
Cics   application programming - session 2Cics   application programming - session 2
Cics application programming - session 2
 
ALL ABOUT DB2 DSNZPARM
ALL ABOUT DB2 DSNZPARMALL ABOUT DB2 DSNZPARM
ALL ABOUT DB2 DSNZPARM
 
Z OS IBM Utilities
Z OS IBM UtilitiesZ OS IBM Utilities
Z OS IBM Utilities
 
Top jcl interview questions and answers job interview tips
Top jcl interview questions and answers job interview tipsTop jcl interview questions and answers job interview tips
Top jcl interview questions and answers job interview tips
 
Mvs commands
Mvs commandsMvs commands
Mvs commands
 
Tso and ispf
Tso and ispfTso and ispf
Tso and ispf
 
Mainframe interview
Mainframe interviewMainframe interview
Mainframe interview
 
MVS ABEND CODES
MVS ABEND CODESMVS ABEND CODES
MVS ABEND CODES
 
Mainframe refresher-part-1
Mainframe refresher-part-1Mainframe refresher-part-1
Mainframe refresher-part-1
 
Smpe
SmpeSmpe
Smpe
 
Z4R: Intro to Storage and DFSMS for z/OS
Z4R: Intro to Storage and DFSMS for z/OSZ4R: Intro to Storage and DFSMS for z/OS
Z4R: Intro to Storage and DFSMS for z/OS
 
Cics testing and debugging-session 7
Cics testing and debugging-session 7Cics testing and debugging-session 7
Cics testing and debugging-session 7
 
100 COOL MAINFRAME TIPS
100 COOL MAINFRAME TIPS100 COOL MAINFRAME TIPS
100 COOL MAINFRAME TIPS
 
Introduction of ISPF
Introduction of ISPFIntroduction of ISPF
Introduction of ISPF
 
Ipl process
Ipl processIpl process
Ipl process
 
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OSPractical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
Practical Recipes for Daily DBA Activities using DB2 9 and 10 for z/OS
 
Xdc command-to-print-job-output-and-syslog-from-sdsf
Xdc command-to-print-job-output-and-syslog-from-sdsfXdc command-to-print-job-output-and-syslog-from-sdsf
Xdc command-to-print-job-output-and-syslog-from-sdsf
 

Similar to CICS basic mapping support - session 3

CDMA1X Pilot Panorama introduction
CDMA1X Pilot Panorama introductionCDMA1X Pilot Panorama introduction
CDMA1X Pilot Panorama introduction
Tempus Telcosys
 
Design and implementation of GPS Tracker
Design and implementation of GPS TrackerDesign and implementation of GPS Tracker
Design and implementation of GPS TrackerVignesh Kannan
 
673762373-1Materi-ATCAS.pptx
673762373-1Materi-ATCAS.pptx673762373-1Materi-ATCAS.pptx
673762373-1Materi-ATCAS.pptx
NGUYENNGUYENQUANG2
 
Cutc izp deployment guide for nss(draft)
Cutc izp deployment guide for nss(draft)Cutc izp deployment guide for nss(draft)
Cutc izp deployment guide for nss(draft)Phuoc Phuoc
 
basic computer programming and micro programmed control
basic computer programming and micro programmed controlbasic computer programming and micro programmed control
basic computer programming and micro programmed control
Rai University
 
Vehicle tracting system
Vehicle tracting systemVehicle tracting system
Vehicle tracting system
UVSofts Technologies
 
dokumen.tips_mapinfo-training-slides190807.ppt
dokumen.tips_mapinfo-training-slides190807.pptdokumen.tips_mapinfo-training-slides190807.ppt
dokumen.tips_mapinfo-training-slides190807.ppt
JooJnior72
 
232422261 mapinfo-training-slides-190807
232422261 mapinfo-training-slides-190807232422261 mapinfo-training-slides-190807
232422261 mapinfo-training-slides-190807
Arwan Priatna
 
Costin, francillon ghost is in the air(traffic)
Costin, francillon   ghost is in the air(traffic)Costin, francillon   ghost is in the air(traffic)
Costin, francillon ghost is in the air(traffic)DefconRussia
 
Airmap 3000 charter presentation, 2007
Airmap 3000 charter presentation, 2007Airmap 3000 charter presentation, 2007
Airmap 3000 charter presentation, 2007
Kevin Otterman
 
Linux SD/MMC device driver
Linux SD/MMC device driverLinux SD/MMC device driver
Linux SD/MMC device driver
艾鍗科技
 
IRJET- Design and Implementation of Telemetry Encoder for Light- Weight Ballo...
IRJET- Design and Implementation of Telemetry Encoder for Light- Weight Ballo...IRJET- Design and Implementation of Telemetry Encoder for Light- Weight Ballo...
IRJET- Design and Implementation of Telemetry Encoder for Light- Weight Ballo...
IRJET Journal
 
B.sc cs-ii-u-3.2-basic computer programming and micro programmed control
B.sc cs-ii-u-3.2-basic computer programming and micro programmed controlB.sc cs-ii-u-3.2-basic computer programming and micro programmed control
B.sc cs-ii-u-3.2-basic computer programming and micro programmed control
Rai University
 
MICROPROGRAMMEDCONTROL-3.pptx
MICROPROGRAMMEDCONTROL-3.pptxMICROPROGRAMMEDCONTROL-3.pptx
MICROPROGRAMMEDCONTROL-3.pptx
PhoenixEagles
 

Similar to CICS basic mapping support - session 3 (20)

Bms1
Bms1Bms1
Bms1
 
CDMA1X Pilot Panorama introduction
CDMA1X Pilot Panorama introductionCDMA1X Pilot Panorama introduction
CDMA1X Pilot Panorama introduction
 
Design and implementation of GPS Tracker
Design and implementation of GPS TrackerDesign and implementation of GPS Tracker
Design and implementation of GPS Tracker
 
Mikroc gps
Mikroc gpsMikroc gps
Mikroc gps
 
673762373-1Materi-ATCAS.pptx
673762373-1Materi-ATCAS.pptx673762373-1Materi-ATCAS.pptx
673762373-1Materi-ATCAS.pptx
 
Lecture 21
Lecture 21Lecture 21
Lecture 21
 
Cutc izp deployment guide for nss(draft)
Cutc izp deployment guide for nss(draft)Cutc izp deployment guide for nss(draft)
Cutc izp deployment guide for nss(draft)
 
basic computer programming and micro programmed control
basic computer programming and micro programmed controlbasic computer programming and micro programmed control
basic computer programming and micro programmed control
 
Real to protected_mode
Real to protected_modeReal to protected_mode
Real to protected_mode
 
Vehicle tracting system
Vehicle tracting systemVehicle tracting system
Vehicle tracting system
 
dokumen.tips_mapinfo-training-slides190807.ppt
dokumen.tips_mapinfo-training-slides190807.pptdokumen.tips_mapinfo-training-slides190807.ppt
dokumen.tips_mapinfo-training-slides190807.ppt
 
232422261 mapinfo-training-slides-190807
232422261 mapinfo-training-slides-190807232422261 mapinfo-training-slides-190807
232422261 mapinfo-training-slides-190807
 
Costin, francillon ghost is in the air(traffic)
Costin, francillon   ghost is in the air(traffic)Costin, francillon   ghost is in the air(traffic)
Costin, francillon ghost is in the air(traffic)
 
Airmap 3000 charter presentation, 2007
Airmap 3000 charter presentation, 2007Airmap 3000 charter presentation, 2007
Airmap 3000 charter presentation, 2007
 
Linux SD/MMC device driver
Linux SD/MMC device driverLinux SD/MMC device driver
Linux SD/MMC device driver
 
IRJET- Design and Implementation of Telemetry Encoder for Light- Weight Ballo...
IRJET- Design and Implementation of Telemetry Encoder for Light- Weight Ballo...IRJET- Design and Implementation of Telemetry Encoder for Light- Weight Ballo...
IRJET- Design and Implementation of Telemetry Encoder for Light- Weight Ballo...
 
B.sc cs-ii-u-3.2-basic computer programming and micro programmed control
B.sc cs-ii-u-3.2-basic computer programming and micro programmed controlB.sc cs-ii-u-3.2-basic computer programming and micro programmed control
B.sc cs-ii-u-3.2-basic computer programming and micro programmed control
 
Tems operation steps
Tems operation stepsTems operation steps
Tems operation steps
 
phase shifter
phase shifterphase shifter
phase shifter
 
MICROPROGRAMMEDCONTROL-3.pptx
MICROPROGRAMMEDCONTROL-3.pptxMICROPROGRAMMEDCONTROL-3.pptx
MICROPROGRAMMEDCONTROL-3.pptx
 

More from Srinimf-Slides

software-life-cycle.pptx
software-life-cycle.pptxsoftware-life-cycle.pptx
software-life-cycle.pptx
Srinimf-Slides
 
Python Tutorial Questions part-1
Python Tutorial Questions part-1Python Tutorial Questions part-1
Python Tutorial Questions part-1
Srinimf-Slides
 
Cics data access-session 4
Cics data access-session 4Cics data access-session 4
Cics data access-session 4
Srinimf-Slides
 
100 sql queries
100 sql queries100 sql queries
100 sql queries
Srinimf-Slides
 
The best Teradata RDBMS introduction a quick refresher
The best Teradata RDBMS introduction a quick refresherThe best Teradata RDBMS introduction a quick refresher
The best Teradata RDBMS introduction a quick refresher
Srinimf-Slides
 
The best ETL questions in a nut shell
The best ETL questions in a nut shellThe best ETL questions in a nut shell
The best ETL questions in a nut shell
Srinimf-Slides
 
IMS DC Self Study Complete Tutorial
IMS DC Self Study Complete TutorialIMS DC Self Study Complete Tutorial
IMS DC Self Study Complete Tutorial
Srinimf-Slides
 
How To Master PACBASE For Mainframe In Only Seven Days
How To Master PACBASE For Mainframe In Only Seven DaysHow To Master PACBASE For Mainframe In Only Seven Days
How To Master PACBASE For Mainframe In Only Seven Days
Srinimf-Slides
 
Assembler Language Tutorial for Mainframe Programmers
Assembler Language Tutorial for Mainframe ProgrammersAssembler Language Tutorial for Mainframe Programmers
Assembler Language Tutorial for Mainframe Programmers
Srinimf-Slides
 
The Easytrieve Presention by Srinimf
The Easytrieve Presention by SrinimfThe Easytrieve Presention by Srinimf
The Easytrieve Presention by Srinimf
Srinimf-Slides
 
Writing command macro in stratus cobol
Writing command macro in stratus cobolWriting command macro in stratus cobol
Writing command macro in stratus cobol
Srinimf-Slides
 
PLI Presentation for Mainframe Programmers
PLI Presentation for Mainframe ProgrammersPLI Presentation for Mainframe Programmers
PLI Presentation for Mainframe Programmers
Srinimf-Slides
 
PL/SQL Interview Questions
PL/SQL Interview QuestionsPL/SQL Interview Questions
PL/SQL Interview Questions
Srinimf-Slides
 
Macro teradata
Macro teradataMacro teradata
Macro teradata
Srinimf-Slides
 
DB2-SQL Part-2
DB2-SQL Part-2DB2-SQL Part-2
DB2-SQL Part-2
Srinimf-Slides
 
DB2 SQL-Part-1
DB2 SQL-Part-1DB2 SQL-Part-1
DB2 SQL-Part-1
Srinimf-Slides
 
Teradata - Utilities
Teradata - UtilitiesTeradata - Utilities
Teradata - Utilities
Srinimf-Slides
 
Oracle PLSQL Step By Step Guide
Oracle PLSQL Step By Step GuideOracle PLSQL Step By Step Guide
Oracle PLSQL Step By Step Guide
Srinimf-Slides
 
Hirarchical vs RDBMS
Hirarchical vs RDBMSHirarchical vs RDBMS
Hirarchical vs RDBMS
Srinimf-Slides
 
20 DFSORT Tricks For Zos Users - Interview Questions
20 DFSORT Tricks For Zos Users - Interview Questions20 DFSORT Tricks For Zos Users - Interview Questions
20 DFSORT Tricks For Zos Users - Interview Questions
Srinimf-Slides
 

More from Srinimf-Slides (20)

software-life-cycle.pptx
software-life-cycle.pptxsoftware-life-cycle.pptx
software-life-cycle.pptx
 
Python Tutorial Questions part-1
Python Tutorial Questions part-1Python Tutorial Questions part-1
Python Tutorial Questions part-1
 
Cics data access-session 4
Cics data access-session 4Cics data access-session 4
Cics data access-session 4
 
100 sql queries
100 sql queries100 sql queries
100 sql queries
 
The best Teradata RDBMS introduction a quick refresher
The best Teradata RDBMS introduction a quick refresherThe best Teradata RDBMS introduction a quick refresher
The best Teradata RDBMS introduction a quick refresher
 
The best ETL questions in a nut shell
The best ETL questions in a nut shellThe best ETL questions in a nut shell
The best ETL questions in a nut shell
 
IMS DC Self Study Complete Tutorial
IMS DC Self Study Complete TutorialIMS DC Self Study Complete Tutorial
IMS DC Self Study Complete Tutorial
 
How To Master PACBASE For Mainframe In Only Seven Days
How To Master PACBASE For Mainframe In Only Seven DaysHow To Master PACBASE For Mainframe In Only Seven Days
How To Master PACBASE For Mainframe In Only Seven Days
 
Assembler Language Tutorial for Mainframe Programmers
Assembler Language Tutorial for Mainframe ProgrammersAssembler Language Tutorial for Mainframe Programmers
Assembler Language Tutorial for Mainframe Programmers
 
The Easytrieve Presention by Srinimf
The Easytrieve Presention by SrinimfThe Easytrieve Presention by Srinimf
The Easytrieve Presention by Srinimf
 
Writing command macro in stratus cobol
Writing command macro in stratus cobolWriting command macro in stratus cobol
Writing command macro in stratus cobol
 
PLI Presentation for Mainframe Programmers
PLI Presentation for Mainframe ProgrammersPLI Presentation for Mainframe Programmers
PLI Presentation for Mainframe Programmers
 
PL/SQL Interview Questions
PL/SQL Interview QuestionsPL/SQL Interview Questions
PL/SQL Interview Questions
 
Macro teradata
Macro teradataMacro teradata
Macro teradata
 
DB2-SQL Part-2
DB2-SQL Part-2DB2-SQL Part-2
DB2-SQL Part-2
 
DB2 SQL-Part-1
DB2 SQL-Part-1DB2 SQL-Part-1
DB2 SQL-Part-1
 
Teradata - Utilities
Teradata - UtilitiesTeradata - Utilities
Teradata - Utilities
 
Oracle PLSQL Step By Step Guide
Oracle PLSQL Step By Step GuideOracle PLSQL Step By Step Guide
Oracle PLSQL Step By Step Guide
 
Hirarchical vs RDBMS
Hirarchical vs RDBMSHirarchical vs RDBMS
Hirarchical vs RDBMS
 
20 DFSORT Tricks For Zos Users - Interview Questions
20 DFSORT Tricks For Zos Users - Interview Questions20 DFSORT Tricks For Zos Users - Interview Questions
20 DFSORT Tricks For Zos Users - Interview Questions
 

Recently uploaded

Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 

Recently uploaded (20)

Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 

CICS basic mapping support - session 3

  • 1. CICS - Basic Mapping Support DAY 1 - SESSION 3 Updated in Nov 2004
  • 2. Session 3 : ObjectivesTo Understand the Screen classification and Primary functions of BMS BMS Macros - Mapsets, Maps and Fields and their attributes Physical and Symbolic maps and their Assembly BMS I/O operations - SEND and RECEIVE Maps Cursor positioning on the screen Field attribute modification facility – MDT & Symbolic override
  • 3. CICS Program Design The User interface for CICS programs is implemented using Basic Mapping Support (BMS) BMS is a standard facility provided by CICS, to deal with the formatted screen operations
  • 4. Basic Mapping Support - BMS Screen defined through BMS is called a MAP Collection of one or more maps – MAPSET ◦assembler language program that defines the format of the maps that are used by a program
  • 5. BMS - Primary Functions Device independence Constant Information Handling Access to data fields of the Screen Terminal Paging Message Routing
  • 6. BMS - Sample Screen ITEM-NO : XXXXXXXXXX NAME : XXXXXXXXXXXXXXXXXXXXXXXX QUANTITY : XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX F1=Help F3=Exit F12=Cancel Constant Field(protected) Data Entry Field(Unprotected) Data Entry Field(Unprotected) Auto Skip Field Stopper Field Message Field
  • 7. BMS - Field Types in Sample Layout ITEM-NO : XXXXXXXXXX NAME : XXXXXXXXXXXXXXXXXXXXXXXX QUANTITY : XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX F1=Help F3=Exit F12=Cancel Legend : : Attribute byte : Autoskip Field : Stopper Field
  • 8. Basic Mapping Support - Map Types  Physical map •Is a load module that contains the screen locations of data the BMS needs  Symbolic map •Is a data structure, using which, fields can be referred to in the CICS application program
  • 9. BMS - Map Definition Macros DFHMSD - Defines a Mapset DFHMDI - Defines a Map in a Mapset DFHMDF - Defines a field in a Map
  • 10. BMS - Map Definition Macros DFHMSD Mapset Definition - Start DFHMDI Map Definition - Map 1 Map 1 DFHMDF Field Definition in a Map - Field 1 DFHMDF Field Definition in a Map - Field 2 …… …… DFHMDI Map Definition - Map 2 Map 2 DFHMDF Field Definition in a Map - Field 1 DFHMDF Field Definition in a Map - Field 2 …… …… DFHMSD Mapset Definition - End
  • 11. BMS Macros - Rules Col. Col. Col. Col 1 9 16 72 +-------+---------+---------------------------------+ LABEL Op-Code Parameters separated continuation by commas(parm1=..) char Col.72 Example MAPSTNM DFHMSD TYPE=MAP,MODE=INOUT, X LANG=COBOL,TIOAPFX=YES
  • 12. BMS - DFHMSD Macro setname DFHMSD TYPE={ &SYSPARM | DSECT | MAP }, MODE={ IN | OUT | INOUT }, LANG={ASM | COBOL | C | PLI }, TERM=terminal_type STORAGE=AUTO, TIOAPFX={ YES | NO }, CTRL=(ctrl1,ctrl2...) Example. col col col col 1---------------9-------------16--------------------------------------------------------------- 72 ACCTSET DFHMSD TYPE=MAP,MODE=INOUT,LANG=COBOL, X STORAGE=AUTO,TIOAPFX=YES
  • 13. BMS - DFHMSD Macro (cont’d) Extended Attributes MAPATTS = (COLOR,HILIGHT) DSATTS = (COLOR,HILIGHT) EXTATT = {YES, NO, MAPONLY } - To define color, high intensity, etc., as per CUA standards. - Results in additional variables for each attribute in the symbolic map.
  • 14. BMS - DFHMDI Macro mapname DFHMDI SIZE=(lines,columns), LINE=line_number, COLUMN=column_number, JUSTIFY={ LEFT | RIGHT }, CTRL(ctrl1,ctrl2...) Example. MENUMAP DFHMDI SIZE(24,80),LINE =1,COLUMN =1, X JUSTIFY=LEFT,CTRL(ALARM,FREEKB)
  • 15. BMS - DFHMDF Macro fldname DFHMDF POS=(line,column), LENGTH=number, INITIAL=‘text’, ATTRB=(attr1,attr2,attr3,attr4,attr5) OCCURS=number, Examples. 1. ITEM DFHMDF POS(13,16),LENGTH=6,ATTRB(UNPROT,NUM) 2. DFHMDF POS(15,5),LENGTH=10,INITIAL=‘QUANTITY :’, X ATTRB=ASKIP
  • 16. BMS - DFHMDF Macro - Field Attributes Field Attributes ◦ Field Intensity : NORM / BRT / DRK ◦ Field protection attribute : PROT / UNPROT / ASKIP ◦ Field Characteristic : NUM ◦ Initial Cursor Positioning : IC ◦ Field Modification Indication : FSET
  • 17. BMS - MDTs and their Manipulation MDT indicates whether a field is modified or not MDT on will ensure that data is received into the program MDTs can be turned on by Specifying the FSET attribute in the physical map Setting the attribute byte to FSET in the symbolic map Keying data into the field
  • 18. BMS - MDT manipulation - FRSET an attribute of DFHMSD macro turns off all MDTs on the screen before sending a map requires the physical map field attribute or the symbolic override to control the MDT status
  • 19. BMS - Ending a Mapset definitionCol. Col. Col. Col 1 9 16 72 +-------+---------+----------------------------+ DFHMSD TYPE=FINAL END
  • 20. Preparing Physical & Symbolic Maps MAP DEFINITION MACROS ASSEMBLE LINK EDIT ASSEMBLE PHYSICAL MAP SYMBOLIC MAP LOAD LIBRARY COPY LIBRARY
  • 21. BMS - Symbolic Map ContentsTwo 01-level items generated based on map name 01-level Item names suffixed with “I” or “O” for Input & Output respectively Additional level items defined for ◦ Field for Length ◦ Field for Attribute ◦ Field for Modified Data Indication ◦ Field for Input data ◦ Field for Output Data. 01-level Item for Output REDEFINES Input area.
  • 22. BMS - Sample Map Layout NAME : --------------------- ITEM-NO : ---------- QUANTITY : ---------- 8 19 49 8 29 10 12 COL ROW
  • 23. BMS - Code for the Sample Layout MAPSETS DFHMSD TYPE=&SYSPARM,MODE=INOUT,TERM=ALL, X LANG=COBOL,TIOAPFX=YES,STORAGE=AUTO MAPSMP DFHMDI SIZE(24,80),LINE=1,COLUMN=1 DFHMDF POS(8,7),LENGTH=10,INITIAL=‘NAME :’, X ATTRB=ASKIP NAME DFHMDF POS(8,18),LENGTH=20,ATTRB(UNPROT,IC) DFHMDF POS(8,40),LENGTH=1,ATTRB=PROT DFHMDF POS(10,7),LENGTH=10,INITIAL=‘ITEM NO :’, X ATTRB=ASKIP ITEM DFHMDF POS(10,18),LENGTH=6,ATTRB=NUM) DFHMDF POS(10,25),LENGTH=1,ATTRB=ASKIP DFHMDF POS(12,7),LENGTH=10,INITIAL=‘QUANTITY :’, X ATTRB=ASKIP QTY DFHMDF POS(12,18),LENGTH=6,ATTRB=NUM DFHMDF POS(12,25),LENGTH=1,ATTRB=PROT DFHMSD TYPE=FINAL END
  • 24. BMS - Symbolic Map for the Sample Layout 01 MAPSMPI 02 FILLER X(12). 02 NAMEL S9(4) COMP. 02 NAMEF PIC X 02 FILLER REDEFINES NAMEF. 03 NAMEA PIC X. 02 NAMEI PIC X(20). 02 ITEML S9(4) COMP. 02 ITEMF PIC X 02 FILLER REDEFINES ITEMF. 03 ITEMA PIC X. 02 ITEMI PIC X(06). 02 QTYL S9(4) COMP. 02 QTYF PIC X 02 FILLER REDEFINES QTYF. 03 QTYA PIC X. 02 QTYI PIC X(06). 01 MAPSMPO REDEFINES MAPSMPI. 02 FILLER PIC X(12). 02 FILLER PIC X(3). 02 NAMEO PIC X(20). 02 FILLER PIC X(3). 02 ITEMO PIC X(06). 02 FILLER PIC X(3). 02 QTYO PIC X(06).
  • 25. BMS - I/O operations BMS COMMANDS FOR I/O OPERATIONS •SEND MAP •RECEIVE MAP •SEND CONTROL •SEND TEXT •SEND PAGE
  • 26. BMS - SEND MAP command EXEC CICS SEND MAP (map_name) MAPSET(mapset_name) [FROM(data-area)] [CURSOR(data-value)] [ERASE|ERASEUP] [DATA|MAP ONLY] [ALARM] END-EXEC
  • 27. BMS - SEND MAP command (Contd.) Data to be prepared before SENDing the MAP : ◦ Field Length : fieldname +L ◦ Field Attribute : fieldname +A ◦ Field Content : fieldname +O
  • 28. BMS - SEND MAP command (Contd.) EXEC CICS SEND MAP(‘MAPSMP’) MAPSET(‘MAPSETS’) MAPONLY END-EXEC. EXEC CICS SEND MAP(‘MAPSMP’) MAPSET(‘MAPSETS’) DATAONLY END-EXEC. PHYSICAL MAP OUTPUT DATA STREAM SYMBOLIC MAP OUTPUT DATA STREAM
  • 29. BMS - SEND MAP command (Contd.) SENDING MAP WITH NEITHER MAPONLY NOR DATA ONLY EXEC CICS SEND MAP(‘MAPSMP’) MAPSET(‘MAPSETS’) END EXEC. SYMBOLIC MAP PHYSICAL MAP OUTPUT DATA STREAM
  • 30. BMS - RECEIVE MAP command EXEC CICS RECEIVE MAP(map_name) MAPSET(mapset_name) [INTO (data-area)] ASIS END-EXEC.
  • 31. BMS - RECEIVE MAP command THE RECEIVE MAP COMMAND RECEIVES DATA FROM THE TERMINAL. THE SYMBOLIC MAP WILL CONTAIN THE DATA. DATA IN THE SYMBOLIC MAP fieldname+L Contain the length of the input data. fieldname+F Flag field- Set to x’80’ or X’82’ if the field is modified, but cleared. fieldname+I Contains the input data. Filled with x’00’ if no data is entered.
  • 32. BMS - Changing Field Attributes Need for changing Field attributes ◦ Highlighting fields in error ◦ Protecting fields during deletion IBM Supplied copy library DFHBMSCA contains all possible attribute combinations Can be copied into the application program
  • 33. BMS - Cursor Positioning Cursor positioning required for positioning the cursor during SEND ◦ In the first data entry field during data entry ◦ In the first field resulting in data entry error Cursor Positioning Techniques : ◦ Initial cursor positioning ◦ Direct cursor positioning ◦ Symbolic cursor positioning
  • 34. BMS - Cursor Positioning (Contd.)Static positioning (Initial) • If IC option is specified in the ATTRB field of DFHMDF macro the cursor will be placed at this field Dynamic/Symbolic positioning • Place -1 into the field length field (“L” suffix). cursor will be placed in this field. Dynamic/Relative positioning. CURSOR (data-value) option is used
  • 35. BMS - Detecting Cursor Position The EIB field EIBCPOSN can be used to determine where the cursor was positioned on the screen On a RECEIVE, CICS updates the EIB with the following information: The screen cursor position relative to zero is placed in EIBCPOSN The name of the input key the terminal operator pressed is placed in the field EIBAID.
  • 36. BMS - AIDKEY WORKING STORAGE SECTION. COPY DFHAID. PROCEDURE DIVISION. EXEC CICS RECEIVE MAP(‘MAPSMP’) MAPSET(‘MAPSETS’) END-EXEC EVALUATE TRUE W HEN EIBAID = DFHPF12 EXEC CICS RETURN END-EXEC W HEN EIBAID = DFHENTER PERFORM 1000-PROCESS-DATA THRU 1000-PROCESS-DATA-EXIT W HEN EIBAID = OTHER MOVE ‘Invalid Key Pressed’ TO MESSAGEO END-EVALUATE. Copybook containing the definitions for AID keys
  • 37. Direct Cursor Positioning : ExampleEXEC CICS SEND MAP(.........) MAPSET(....) CURSOR(100) ERASE END-EXEC. WORKING-STORAGE SECTION COPY DFHAID. ....... PROCEDURE DIVISION. EXEC CICS RECEIVE MAP(.........) MAPSET(....) INTO (…..) END-EXEC. IF EIBAID=DFHPF12 THEN ........ IF EIBAID=DFHENTER THEN ....... IF EIBCPOSN LESS THAN 100 THEN ........
  • 38. BMS - SEND/RECEIVE - Example SEND MAP (‘MAPSMP’) MAPSET(‘MAPSETS’) MAPONLY RECEIVE MAP (‘MAPSMP’) MAPSET(‘MAPSETS’) NAME : ITEM-NO : QUANTITY : NAME : BOLT ITEM-NO : 0023 QUANTITY : 5000
  • 39. Session 3 : Summary Primary functions of BMS Screen classification; Mapsets, Maps and Fields; macros and their attributes Changing Field Attributes - MDT manipulation Preparation of Physical and Symbolic maps Sample Layout of Symbolic map BMS I/O operations - SEND and RECEIVE maps Cursor positioning