In an online DL/I subsystem, an
online control region is initialized
and uses JCL specifications to set up the environment in which user
programs execute. Under
z/OS, types of online control regions include
IMS/ESA
DB/DC regions or CICS regions.
An online control region also allocates and controls access to DL/I database data
sets for multiple-user programs, ensuring the integrity of the databases being
used by many programs. Normally, the online control region obtains exclusive control
of the database data sets so that other DL/I subsystems do not update the database
data sets concurrently. This preserves database integrity within the overall system.
When the online control region allocates a database, it is referred to as an online
database. The AcctDBD database is an online database when it is allocated to an online subsystem. When the online control region is terminated,
any associated databases can be used in a batch processing region.
Databases can be freed to access by a batch program concurrent with online control
region execution. Alternatively, batch and online processing can concurrently share
access to databases by using IMS/ESA data sharing support.
The
SAS/ACCESS interface to IMS interacts
with an
online control region through a DL/I
online access region. The online access region is used when a batch program requires access to a database
allocated by the online control region, that is, to an online database. There are
two types of online access regions under
z/OS:
-
a
BMP region is used to access an IMS/ESA DB/DC online control region
-
a BMP region is used to access a CICS region (the DBCTL facility of IMS/ESA provides
this functionality).
For example, the AcctDBD database must be updated periodically with another database,
which contains information about
transactions using automated teller machines (ATMs). There is a batch program to
read this transactions database and update the AcctDBD database. However, because
the AcctDBD and transaction database data sets are allocated exclusively to the online
subsystem for the tellers, a batch subsystem cannot allocate the data sets. This
type of conflict is resolved by an online access region, in which a batch program
executes but issues the DL/I calls under the control of the online control region.
This method preserves the integrity of the online databases.
The typical online access region and online control region interaction is depicted
in the following figure.