DB2
Distributed Data Facility (DDF) Communication Database (CDB) enables
DB2
z/OS applications to access data on other systems. Database administrators
are responsible for customizing CDB.
SAS/ACCESS Interface to DB2 under
z/OS supports both types of DDF: system-directed access (private
protocol) and Distributed Relational Database Architecture.
System-directed
access enables one DB2
z/OS subsystem to execute
SQL statements on another DB2
z/OS subsystem. System-directed access
uses a private protocol only for DB2. It is known as a private protocol
because you can use only it between DB2 databases. IBM recommends
that users use DRDA. Although
SAS/ACCESS Interface to DB2 under
z/OS
cannot explicitly request a connection, it can instead perform an
implicit connection when SAS initiates a distributed request. To initiate
an implicit connection, you must specify the
LOCATION= option. When you specify this option, the three-level table
name (
location.authid.table)
is used in the SQL statement that
SAS/ACCESS Interface to DB2 under
z/OS generates. When the SQL statement that contains the three-level
table name is executed, an implicit connection is made to the remote
DB2 subsystem. The primary authorization ID of the initiating process
must be authorized to connect to the remote location.
Distributed
Relational Database Architecture (DRDA) is a set
of protocols that lets a user access distributed data. This lets
SAS/ACCESS
Interface to DB2 under
z/OS access multiple remote tables at various
locations. The tables can be distributed among multiple platforms,
and both like and unlike platforms can communicate with one another.
In a DRDA environment, DB2 acts as the client, server, or both.
To connect to a DRDA
remote server or location,
SAS/ACCESS Interface to DB2 under
z/OS
uses an explicit connection. To establish an explicit connection,
SAS/ACCESS Interface to DB2 under
z/OS first connects to the local
DB2 subsystem through an
attachment facility (CAF
or RRSAF). It then issues an SQL CONNECT statement to connect from
the local DB2 subsystem to the remote DRDA server before it accesses
data. To initiate a connection to a DRDA remote server, you must specify
the
SERVER=
connection option. When you specify
this option, SAS uses a separate connection for each remote DRDA location.