Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
IMS DC CONCEPTS
General Online concepts Batch vs online differences IMS DC Block diagram Messages and Queues COBOL basics for MPP Programs Message Format Service (MFS)
Queue manager
Log Datasets
Logging DL/I
DB Datasets
Application Resources:
A.Application Programs. B. Transaction Codes. C. Message Queues. D.Data Bases.
Out of these two application programs ,our focus is mainly on MPP which plays major role in IMS/DC environment.The scheduling of MP programs is entirely under the control of IMS.A message processing program is automatically loaded by IMS when a message to be processed by that program is received.
Messages,Queues
Message queueing: Message is a Unit of data that is transmitted between a program and a terminal. When IMS receives a message from a terminal its not passed immediately to the destination, instead they go for MFS edit. The entry a terminal user makes to invoke a transaction and the execution of the application program with which it is associated are not synchronous. The IMS stores the transaction temporarily, which is message queuing and the IMS modules that performs this are collectively called the queue manager (QPOOL). Queues often contain more transactions that can be processed at one time, a priority scheme is used in determining which transaction to select first from the queues.
Messages,Queues
There are three types of input messages: Transactions(A message that has an MP program as a destination,whether it originates at a terminal or in a program ,is called a TRANSACTION). Terminal-to-terminal message switches IMS commands You can Identify input message type If IMS uses the value in 8 bytes characters name in an application program i.e transaction code. These transaction codes are defined to IMS during IMS system definition with TRANSACT macros.
Messages,Queues
EX: TRANSACT CODE =TRANS A TRANSACT macro names a transaction code,and follows the APPLCTN macro for the program that processes it.This indicates to IMS which MP program processes each type of transaction. If the first 8 characters contain an LTERM name i.e message switch If the input message begins with a slash IMS interprets it as a command.
LTERM NAME is the the terminal from where the message has been generated and sent into IMS The terminal is connected to IMS , hence IMS recognizes the terminal name itself no need for explicit mentioning of the Name
MOD Message output descriptor is a part of MFS which represents the medium to key in the messages from the terminals into the IMS
About DL/I
DL/I actually known as Data language/1 DL/I is a interface between database and IMS/DC It is IBMs name for the collection of software modules
DL/I intercepts all requests that programs make for accessing the data base
IMS uses DL/I functions to communicate with DL/I modules
PIC X(8). PIC XX . PIC XX. PIC S9(7) PIC S9(6) V 9 PIC S9(5) PIC X(8). PIC X(8).
The message will be directed to the terminal mentioned in the I/O PCB ie the original terminal There is a provision of redirecting the messages to other terminals which are not the original one this can be done using ALT-IO-PCB
05 FILLER
PIC
XX.
CALL CBLTDLI using DLI-GU CR-PCB-MASK RECEIVABLE-SEGMENT INVOICE-NO-SSA . A data communication call
CALL CBLTDLI using DLI-GU IO-PCB-MASK INPUT-MESSAGE-SEGMENT.
The MFS control blocks indicate to IMS TM how you want your input and output messages arranged.
MFS makes it possible for an MPP to communicate with different types of terminals without having to change the way it reads and builds messages.
DIF
MID
App. Program
LABEL
OPERATION
OPERAND
Syn: PFK=(MSG_FLD,1=01,2=02)
MSG_FLD is the field of Message and gets populated with corresponding Value of the PF Key pressed
s all
ed
There should be one DIV for each of the Format control Block (DIF or DOF)
For 3270 terminal type there will be only one DIV statement
Syn: CURSOR=((Line_No,Column_No,C_field))
FMT DEV
DIV
DPAGE DFLD . DFLD DPAGE
FMTEND
SEG: Identifies the beginning of a series of MFLD statements the make up a message segment.You may code multiple SEG statements subordinate MFLD: Defines fields in the message segment There should be one-to-one mapping between MFLD in the Message Descriptor and fields in I/O area layout in Application Program
(DFLD,SYSLIT) - If the device field contains data,the SYSLIT(System Literal) values be supplied instead
IMV2.PGMLIB
All IMS application program load modules are stored in this data set.