Professional Documents
Culture Documents
No:
Name : IMS DC Fundamentals
Introduction : This material Explains
Online processing that can
be handled using IMS DC.
Course Details
Pre-Requisite Knowledge of IMS DB
M# Topic Time(hrs)
1 Introduction 2
2 IMS-DC processing 3
3 MFS Facilities 2
4 Advanced IMS-DC topic 2
5 Error Handling in IMS 2
6
Module 1- Introduction
An Introduction to IMS :
IMS is a Hierarchical DBMS, supplied by IBM
& runs on Mainframe Computers, has 2 main
Functions:
Data Base (DB) Processing
Data Communication (DC) Processing.
• Interactive Programs
Input Message
Terminal IMS DC
Program Process Database
Output Message
• IMS/VS forms a layer in between the Terminal
and the IMS-DC programs, this helps in
asynchronous mode of communication.
• Message - is a unit of Data that’s transmitted
between a program and a Terminal
• The above type of program is called Message
Processing Programs (MPPs)
Regions in IMS
• MPP Region
– is where IMS schedules & executes Message Processing
Programs.
– The Number of MPP Regions determines the number of
MPPs that can be active at any one time.
– A program that occupies an MPP Region runs until it has
processed all of the input messages that IMS has received
for it. Then it ends, and the MPP region in which it was
running is freed and made available for another
Application Program.
• BMP (Batch Message Processing) Region
– A BMP program is much like MPP, except terminal
response is not required for each input Message, and
the Database Processing an input message requires
does not have to be done immediately.
– These are typically Batch Programs.
– The main Advantage is, it can access Data Bases
that are allocated to the IMS Control Region for use
by MPPs at the same time.
• Control Region
– The main function of this region is that, all terminal,
Database, and Logging Operations associated with
IMS-DC programs are performed through this
Region.
Module 2 - IMS-DC Processing
LL Data
ZZ
•LL – Length of Entire Segment Usage: S9(3) Comp
•ZZ – IMS Reserved Data Usage: S9(3) Comp
• Output Message I/O Area Format
LL Data
Z1 Z2
•LL – Length of Entire Segment Usage: S9(3) Comp
•Z1 & Z2 – IMS Reserved Data Usage: X(2)
Module –3, MFS Facilities
• Paging
– The Facility that lets Messages to be Broken
down into Components for display, for
Processing or for both purpose.
– Advantage of Paging is that it facilitates to
create Long & Complex output Messages.
– There are Two kinds of Paging
• Physical Paging
• Logical Paging
• Alternate Destination Concepts :
– The application Program that’s processing a
Single Input Message can send multiple
Output Message to Multiple Destinations.
– ISRT call is issued but only difference is that
the call specifies Alternate PCB instead of
I/O PCB.
– Alternate PCB (ALTPCB), which are
specified in the programs PSBGEN job,
name the other terminals or transactions to
which the program can send Messages.
Input Message
SPA
Message
Terminal Segment
Out
pu tM
essa Application
ge
Program - 2
– The Program that receives the input Message
is not the same one that responds to the
Terminal.
– The First Program passes in SPA and other
necessary data to the second Program, which
does additional processing and respond to the
originating terminal.
• Deferred Program Switching :
g e 1 Application
essa
u t M 1 Program - 1
Inp sa ge
M es
t p ut
Ou
SPA
Terminal
Inpu
t Mes
sa ge 2
Out
pu tM Application
essa Program - 2
ge 2
– A single Conversation involves two different
Application Programs, one for each of two
terminal Interactions.
– The data stored in SPA is passed from the
first program to the Second.
– The second program isn’t invoked until the
user sends the next input message
– This technique can impose less overhead on
the IMS system & can result in faster
response.
Module-5, Error Handling in IMS.
• Logging:
– Records all Database Updates, all Message
queued and all program scheduled.
– These Information can be used to restore the
system if a failure occurs.
• Recovery:
– IMS provides extensive facilities for
Recoveries in the event of failure
– If an Application Program Abends, IMS
automatically reverse or Rollback the
changes it has made to the Databases and
Message Queues.
• Checkpointing:
– The checkpoints are taken automatically with
each transaction a program processes. (This is
called Single Mode Processing.)
– In Multiple Mode Processing, the only
automatic checkpoint is at the End of the
Program. However, the program can force a
checkpoint by issuing CHKP call, which causes
IMS to write a Checkpoint Record to the Log.
– The Checkpoint Call Syntax: