Professional Documents
Culture Documents
Cics PPT
Cics PPT
Program Design
Critical! Can save hours (days!) PSEUDO-CONVERSATIONAL (different!) Event Driven - Major Functions
Pseudo-Conversational
An on-line program that actually ended while appearing to wait for a response. Single-user systems are conversational System waits for operator to enter data Single user system - nothing else to do Multi-user system cant waste the time 3270 screen handles operator activity
Pseudo-Conversational
Conversational program remains in storage during entire interaction. Pseudo-conversational program only in storage for a few seconds each action. Many more users can be processed Storage used more efficiently Minor complication to programs!
Pseudo-Conversational
Terminal handles operator entry Attention Key signals CICS screen ready
Enter, PF, PA, or Clear Key - (Event)
CICS reloads program (Virtual Storage) Program start at BEGINNING every time You must keep up with where user is User unaware that program restarted
PSEUDOCONVERSATIONAL PROGRAMMING:
WORKING-STORAGE
COMMON AREA
WORKING-STORAGE
DB2
IMS
SQL
DL/I
Terminal Control
Application Program
Maps
(VTAM,SNA,TCP/IP)
Terminal User
TRANS-ID = Transaction Identifier PCT = Program Control Table PPT= Processing Program Table
CICS Screen
Basic Mapping Support (BMS) or a Screen painter used to develop BMS uses assembler macros to define screen layout(s)
DFH = DFHMSD = DFHMDI map) DFHMDF = field) Always means CICS mapset descriptor (one per mapset) = map descriptor initiator (one per map descriptor field (one for each map
Define a Mapset
To define the mapset.
name DFHSMD TYPE=(type of mapset), MODE=how map is used, CTRL=FREEKB, LANG=language, TIOAPFX=YES, STORAGE = AUTO
Define a Map
MENU013 DFHMDI SIZE=(24,80), LINE=1, COLUMN=1
Define Fields
DFHMDF POS=(7,10),LENGTH=10,INITIAL='LAST NAME:', ATTRB=ASKIP LNAME DFHMDF POS=(7,21),LENGTH=20,ATTRB=(UNPROT,IC)
ATTRB Parameter
BRT NORM DRK PROT UNPROT IC FSET High intensity display Normal intensity Not displayed (Hidden) Protected no data keyed Data may be keyed in Initial cursor position MDT set ON for field
Protection Attribute
Protected user cant key data in field Unprotected user allowed to key data Auto-Skip cursor skips to next field
Used to mark end of data entry field Cursor automatically moves to next field
Intensity Attribute
Normal shown normal intensity Bright shown in high intensity No-display not shown (background)
Used for password entry Also used to hide data on screen
END
More terminology
PHYSICAL MAP load module
Result of Assembly Contains table of screen locations of data Also contains attributes of each field
CICS Input/Output
CICS handles all I/O Treat screen as simple file (one record)
Can Read Screen RECEIVE MAP Can Write Screen SEND MAP
Can Return to CICS with ID of Program to execute next time user keys AID key Return without TRANS-ID, Exits to CICS
Send A Map
* SEND MAP FIRST TIME IN. * IF EIBCALEN = 0 MOVE 'MENU013' TO MAP-NAME PERFORM SEND-MAP-MAPONLY PERFORM RETURN-TRANSID END-IF
SEND-MAP-MAPONLY.
EXEC CICS SEND MAP(MAP-NAME) MAPONLY ERASE NOHANDLE END-EXEC EVALUATE EIBRESP WHEN DFHRESP(NORMAL)
Receive a Map
* * * RECEIVE MAP EXEC CICS RECEIVE MAP(MAP-NAME) INTO(MAPS) NOHANDLE END-EXEC EVALUATE EIBRESP WHEN DFHRESP(NORMAL) CONTINUE WHEN DFHRESP(MAPFAIL)