Professional Documents
Culture Documents
Customer Information Control System -CICS developed in late 1960s as a DB/DC control system.CICS provides an interface between the Operating System and application programs, it is a transaction management system that can be used on a variety of operating systems not only OS/390, but MVS, VSE, UNIX, Windows and others too. It is a data (base) communications system that provides the user access to online business systems and data with security. CICS can be classed as middleware, or acting as an application server to user applications, providing the customer services to help them implement online business applications.
i) The BMS Macros are coded in the form of Maps, and Map sets to define the Screen attributes, screen field positions, and field characteristics.
3) Physical Map :
a) The BMS macros are assembled and link-edited into CICS load library to create the physical map. The mapset like any other CICS program is stored in CICS runtime library the PPT(Program Processing Table). At the program execution time the physical map is being used by CICS to load the screen image. b) In case of input operations, the physical map defines the maximum length, the starting position for each field to be read and allows BMS to interpret an input NMDS. c) In case of output operations, the physical map defines the starting position, length, field characteristics and the default data for each field and allows BMS to construct an output NMDS.
4) Symbolic Map :
a) The symbolic map is coded using the BMS macro, assembled separately and catalogued into a copy library. The symbolic map serves as a DSECT for referencing the Terminal Input/Output Area(TIOA). The program issues a COBOL COPY statement to include it in the program. b) The symbolic maps represents the actual data structure of the fields defined in the physical map, and is used by the application program to send and receive information from the terminal, in the CICS SEND-MAP & RECEIVE MAP commands. c) The symbolic map can be used by the CICS application programs to dynamically to alter the field attributes, modify screen cursor position, and highlight , protect , unprotect specific fields on the screen. Receive Map Command :
EXEC CICS MAPNAME(MAP name) MAPSET(mapset-name)
The Receive Map Command is used to receive a map from a terminal. -Exception Condition is MAPFAIL. Send Map Command:
EXEC CICS SEND (MAP name) MAPSET (mapset-name) DATAONLY/MAPONLY FROM (data-area) LENGTH (data-value) ALARM CURSOR (data-value) ERASE ERASEUP FREEKB FRSET END-EXEC
72 Contd.
X X X X
5.1) Explanations :
a) SETNAME : Name of the mapset. Used in CICS command to read or write one of the maps in the mapset. It is the load module name. b) OPERATION : Macro identifier. Mapset/Map/Field definition. c) OPERANDS : Optional key words (parameters) separated by comma. d) CONTD : Current line can be continued by leaving this column non-blank (usually X) and the next line have to be started in 16th column. e) COMMENTS : * in column 1 makes the line comment. f) INITIAL VALUES : Always surround initial values by single quote marks g) ESCAPE CHARS : and &
6) Order of Macros :
DFHMSD TYPE=DSECT DFHMDI DFHMDF DFHMDF DFHMDI DFHMDF DFHMDF DFHMSD TYPE=FINAL END Mapset Map A field A field: Map A field A field: Mapset
OPTIONS: TYPE= DSECT MAP &SYSPARM FINAL MODE= IN OUT INOUT STORAGE = AUTO BASE
To define the map type For symbolic map For physical map For special assembly procedure To indicate the end of a mapset Coding To indicate input/output operations For an input map only For an output map only For maps involving both input and output. To acquire a separate symbolic map area for each mapset To have the same storage base for the symbolic maps of from More than One mapset
TIOAPFX= YES
To reserve the prefix space (12 bytes) for BMS commands to Acess TIOA Properly required for the CICS command level. To define the device control requests To unlock the keyboard To reset MDT to zero status To set an alarm at screen display time To indicate the mapset to be sent to the printer This ensures device independence, required if other than 3270 Terminal is being used. To specify the user provided suffix number. This must correspond to the TCT parameter.
To define the size of the map by the line size (ll) and the column Size(cc).Useful When the screen contains. Indicates the starting line number of the map. Indicates the starting column number of the map. To specify the entire map (map fields) is to be left or right justified.
CUSTNO
DFHMDF
7) Attribute character :
Function: a) The attribute character is an invisible 1-byte character, which precedes a screen field and determines the characteristics of a field. b) ASKIP - Autoskip. Data cannot be entered in this field. The cursor skips to the next field. c) PROT - Protected field. Data cannot be entered into this field. If data is entered, it will cause the input-inhibit status. d) UNPROT - Unprotected field. Data can be entered and this is used for all input fields. e) NUM - Numeric field. Only numbers (0 to 9) and special characters (. and -) are allowed. f) BRT - Bright display of a field (highlight). g) NORM - Normal display. h) DRK - Dark display. i) IC - Insert cursor. The cursor will be positioned in this field. Incase, IC is specified more than once, the cursor is placed in the last field. j) FSET - Field set. MDT is set on so that the field data is to be sent from the terminal to the host computer regardless of whether the field is actually modified by the user.