CICS-ClassBook-Lesson08
CICS-ClassBook-Lesson08
Instructor Notes:
Page - 08 - 1
Customer Information Control Systems BMS Programming Considerations
Instructor Notes:
Lesson Objectives
Page - 08 - 2
Customer Information Control Systems BMS Programming Considerations
Instructor Notes:
8.1: DFHBMSCA – Standard Attribute Byte List
Concept of DFHBMSCA
Copy book DFHBMSCA A field’s attribute can be changed by moving a value to the corresponding attribute
is discussed in field in the symbolic map.
Chapter 6. Just This feature can be used to highlight errors detected by an edit module.
provide a quick recap. To make it easy to modify attribute characters, IBM supplies a standard COPY
member named DFMHBMSCA.
For example:
• COPY DFHBMSCA
• MOVE DFHBMPRO to NAMEA
Page - 08 - 3
Customer Information Control Systems BMS Programming Considerations
Instructor Notes:
8.1: DFHBMSCA – Standard Attribute Byte List
Example of DFHBMSCA
Page - 08 - 4
Customer Information Control Systems BMS Programming Considerations
Instructor Notes:
8.2: FACDEFN
Concept of FACDEFN
The FADEFN Copy book is Using DFHBMSCA for changing attributes is cryptic.
not supported by CA- Also, it does not include some of the most commonly used attribute bytes.
Realia. Furthermore, most of the definitions it does include are rarely used.
Hence an improved copy member for the attribute definitions is created.
The library member FACDEFN contains standardized definitions for attribute
characters.
Page - 08 - 5
Customer Information Control Systems BMS Programming Considerations
Instructor Notes:
8.2: FACDEFN
Concept of FACDEFN
COPY FACDEFN.
..
..
MOVE FAC-PROT-SKIP TO CUSTNOA
FACDEFN:
05 FAC-PROT-DARK PIC X
VALUE '%'.
05 FAC-PROT-DARK-MDT PIC X VALUE '_'.
05 FAC-PROT-SKIP PIC X VALUE '0'.
05 FAC-PROT-SKIP-MDT PIC X
VALUE '5'.
05 FAC-PROT-SKIP-BRT PIC X
VALUE '8'.
05 FAC-PROT-SKIP-BRT-MDT PIC X VALUE '9'.
05 FAC-PROT-SKIP-DARK PIC X VALUE '@'.
05 FAC-PROT-SKIP-DARK-MDT PIC X VALUE
QUOTE
Page - 08 - 6
Customer Information Control Systems BMS Programming Considerations
Instructor Notes:
8.3: Cursor Positioning Techniques
Different Techniques
Page - 08 - 7
Customer Information Control Systems BMS Programming Considerations
Instructor Notes:
8.4: Static Cursor Positioning
DFHMDF POS=(3,16),
ATTRB=(UNPROT, FSET, IC)
LENGTH=8
Page - 08 - 8
Customer Information Control Systems BMS Programming Considerations
Instructor Notes:
8.5: Symbolic Cursor Positioning
MOVE –1 TO CHOICEL.
EXEC CICS SEND MAP(‘MAP1’)
MAPSET(‘MAP1’)
CURSOR
ERASE
END-EXEC
Note:
The SEND MAP command to be issued must have the CURSOR
option (without argument). Also, the mapset must be coded with
MODE=INOUT in the DFHMSD macro.
Page - 08 - 9
Customer Information Control Systems BMS Programming Considerations
Instructor Notes:
8.6: Relative Cursor Positioning
Page - 08 - 10
Customer Information Control Systems BMS Programming Considerations
Instructor Notes:
8.6: Relative Cursor Positioning
Page - 08 - 11
Customer Information Control Systems BMS Programming Considerations
Instructor Notes:
Summary
Page - 08 - 12
Customer Information Control Systems BMS Programming Considerations
Instructor Notes:
Review Questions
1. Symbolic cursor
Question 1: In ___ approach, a cursor is dynamically positioned through an
positioning application program by placing –1 into the field’s length field.
2. False
3. False Question 2: If IC is set for multiple field, the first IC will be honored.
• True / False
Page - 08 - 13