Virtual CICS - Finding Your Way With CICS Maps
Virtual CICS - Finding Your Way With CICS Maps
Presented by:
Mary Abdill
Creative Data Movers
[email protected]
www.CreativeDataMovers.Inc
© 2017 Creative Data Movers, Inc.
Introduction M
o
d
BMS and the UI
u
l
e
COBOL: SEND/RECEIVE MAP
T
o
Altering attribute bytes, setting p
cursor, etc. in COBOL i
c
© 2017 Creative Data Movers, Inc.
s
1
CICS TS Programming 11/14/2017
3270
CICS SEND,
Emulator BMS
RECEIVE MAP
Green Screen
CICS
Web
browser SEND,
mapping (BMS)
web page RECEIVE
solution
MAP
2
CICS TS Programming 11/14/2017
Mapset
• Contains one or more maps
Physical Map
• Compiled assembler macro code
Symbolic Map
• copybook of the map inputs/outputs
5 © 2017 Creative Data Movers, Inc.
BMS: Formatted
Terminal Displays
3
CICS TS Programming 11/14/2017
BMS Concepts
Map Preparation
Physical A Load
assemble
map(s) module
Code
BMS
mapsets
& maps
Symbolic A
disassemble
map(s) copybook
4
CICS TS Programming 11/14/2017
Fields
3270 screens are character-based and mark
fields with attribute bytes
attribute attribute
field
byte byte
Attribute bytes
Mark beginning and usually end of field
Are protected
User cannot type over an attribute byte
Provide features for the upcoming field
Is input or output (unprotected or protected)
Bold
Is autoskip on?
Is MDT on? etc.
attribute attribute
field
byte byte
5
CICS TS Programming 11/14/2017
Stopper byte
Without a stopper byte
attribute
field
byte
attribute stopper
field
byte byte
attribute autoskip
field
byte byte
6
CICS TS Programming 11/14/2017
7
CICS TS Programming 11/14/2017
DFHMDI
DFHMSD
8
CICS TS Programming 11/14/2017
• Assembler macros
• Assemble and link
• Disassemble
Screen Illustration
9
CICS TS Programming 11/14/2017
1 9 or 10 16 72
* comments
10
CICS TS Programming 11/14/2017
DFHMSD Examples
MAPSET
NAME
11
CICS TS Programming 11/14/2017
DFHMDI Example
Up to 7
characters
12
CICS TS Programming 11/14/2017
cont.
36 © 2017 Creative Data Movers, Inc.
13
CICS TS Programming 11/14/2017
BMS Example
cont.
38 © 2017 Creative Data Movers, Inc.
14
CICS TS Programming 11/14/2017
cont.
39 © 2017 Creative Data Movers, Inc.
length = 11
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
Attribute Attribute
POS=(07,003) POS=(07,015)
byte byte
40 © 2017 Creative Data Movers, Inc.
15
CICS TS Programming 11/14/2017
16
CICS TS Programming 11/14/2017
cont.
47 © 2017 Creative Data Movers, Inc.
48
cont. © 2017 Creative Data Movers, Inc.
17
CICS TS Programming 11/14/2017
cont.
50 © 2017 Creative Data Movers, Inc.
18
CICS TS Programming 11/14/2017
19
CICS TS Programming 11/14/2017
CICS Programming
with BMS Objects
Pseudo-Conversational Programming
SEND MAP
MOVE '1' TO COMMAREA
cudt
RETURN with COMMAREA
program ends
starts again
Book code: ci02999999 RECEIVE MAP ci02999999
READ ci02999999 RECORD
prepare map
course update SEND MAP with book information
cudt ci02 MOVE '2' & book code to COMMAREA
Date: 10/01/12 RETURN with COMMAREA
Book info: CICS pgm program ends
© 2016 Creative Data Movers, Inc.
20
CICS TS Programming 11/14/2017
21
CICS TS Programming 11/14/2017
22
CICS TS Programming 11/14/2017
23
CICS TS Programming 11/14/2017
Altering Attributes
Set attribute bytes in your program using the fields
in the symbolic map that end with 'A'
24
CICS TS Programming 11/14/2017
• 00 is Normal
• 01 is also Normal
• 10 is Bright
• 11 is Dark
25
CICS TS Programming 11/14/2017
26
CICS TS Programming 11/14/2017
27
CICS TS Programming 11/14/2017
Generated copybook
02 DATE.
03 FILLER PIC X(2).
03 MMA PIC X.
03 MMO PIC X(2).
03 HYPHEN1 PIC X(1).
03 DDO PIC X(2).
03 HYPHEN2 PIC X(1).
77
03 YRO PIC X(2). © 2017 Creative Data Movers, Inc.
COPYBOOK
02 MAPFLDG OCCURS 40.
03 FILLER PIC X(2).
03 MAPFLDA PIC X.
03 MAPFLDO PIC X(9).
28
CICS TS Programming 11/14/2017
References
IBM manual: access to CICS via Browser
https://www-03.ibm.com/systems/z/os/zvse/
solutions/cicsaccess.html
BMS CICS TS v5.2
https://www.ibm.com/support/knowledgecenter/
en/SSGMCP_5.2.0/com.ibm.cics.ts.applicationpro
gramming.doc/topics/dfhp370.html
BMS CICS TS v5.3
https://www.ibm.com/support/knowledgecenter/
en/SSGMCP_5.3.0/com.ibm.cics.ts.applicationpro
gramming.doc/topics/dfhp373.html
Thank You
Mary Abdill
29