This appendix outlines what you must do to use RXSQL to access a non-DB2 Server for VM application server, and also outlines the restrictions that are specific to using RXSQL in the DRDA protocol. You should also read the appendix in the DB2 Server for VSE & VM SQL Reference manual that discusses the DB2 Server for VM restrictions when using the DRDA protocol.
Publications that contain additional information on Distributed Relational Database and Distributed Data Library can be found in Bibliography.
With RXSQL, you can exploit the ability of the DB2 Server for VM application requester to communicate with other application servers that implement the DRDA architecture. The non-DB2 Server for VM application server will receive and process your RXSQL requests and return data to your program.
DRDA support is available only in the following environments:
There are a few setup steps which you must follow before you can use RXSQL to access distributed data.
Before you can use RXSQL to access a non-DB2 Server for VM application server, you should make sure that RXSQL has been installed in your distributed environment. Refer to Chapter 1, Before You Begin for more details.
A communication directory must be set up specifying the name and address of the application server. The communication directory describes the information pathway between the application requester and the target application server. See the DB2 Server for VM System Administration manual for more details.
When invoking SQLINIT, the protocol parameters should be either DRDA or AUTO. When DRDA is specified, the Isolation Level must be CS. Any RXSQL SQLISL commands are ignored and the Isolation Level is fixed as CS. See the DB2 Server for VSE & VM Database Administration manual for more details.
To access data in a non-DB2 Server for VM application server you must be connected to that server. You connect to the non-DB2 Server for VM application server when you issue the SQLINIT EXEC, or you can switch application servers while using RXSQL by issuing the CONNECT statement. For the syntax and recommended usage of this statement and other SQL statements used to access data in non-DB2 Server for VM application servers, see the IBM SQL Reference, Version 2, Volume 1 manual. When you are using Extended Dynamic SQL to access a non-DB2 Server for VM application server which does not support Extended Dynamics, such as DB2, then each prepared statement is mapped to either a Static or a Dynamic statement.
DB2 RXSQL has some restrictions in addition to those listed in the appendix "Restrictions with Distributed Relational Database Architecture (DRDA) Protocol" of the DB2 Server for VSE & VM SQL Reference manual.
In summary, only Dynamic SQL (regular or Extended Dynamic) is supported when accessing a non-DB2 Server for VM application server that does not support Extended Dynamic SQL.
You may specify a data type of zoned decimal in a
variable_qualifier on data input or output when connected to an
application server that supports this data type. Zoned decimal is not
valid when connected to an DB2 Server for VM application server.