DB2 Server for VSE & VM: SQL Reference
Users who are planning to design applications that:
- run on non-VM platforms and use the Distributed Relation Database
Architecture (DRDA) protocol to connect to DB2 Server for VSE & VM
servers, or
- run on VM/ESA and use the Distributed Relation Database Architecture
(DRDA) protocol to connect to servers other than DB2 Server for VSE & VM
need to be aware that DB2 Server for VSE & VM's support of SQL
does not exactly match the IBM SQL standard
4
or the SQL Entry Level
standard.
5
This appendix attempts to
provide some guidance in discrepancies to these standards.
For a list of where DB2 Server for VSE & VM does not support the
IBM SQL or |SQL92 entry level standard, please consult the DB2
Server for VSE & VM SQL Reference manual.
- VM applications may not use the "userid IDENTIFIED BY password"
clause on the CONNECT statement when using the DRDA protocol.
- Packages that were created in SQLDS protocol by using extended dynamic
statements
6
cannot be
processed in DRDA protocol, or the other way around.
- There is no support for modifiable packages created by using extended
dynamic statements. If you request such support by specifying the
MODIFY option on the CREATE PACKAGE statement, the system will override this
option with NOMODIFY.
- Nonmodifiable packages created by using extended dynamic statements are
supported with the following restrictions:
- There is no support for the positioned UPDATE and positioned DELETE
statements.
- If the Basic Extended PREPARE form of the extended PREPARE statement
prepares a statement that contains parameter markers, the USING DESCRIPTOR
clause must be used to identify an input SQLDA structure.
- There is no support for the Single Row Extended PREPARE form of the
extended PREPARE statement.
- There is no support for the NODESCRIBE option of the CREATE PACKAGE
statement. If specified, it will be ignored.
- There is no support for "USER" in the ISOLATION option of the CREATE
PACKAGE statement. The system will override USER with CS.
- There is no support for "LOCAL" in the DATE or TIME option of the
CREATE PACKAGE statement. If specified, SQLCODE -168 (SQLSTATE 42615)
will be generated, indicating an incorrect parameter.
- DB2 Server for VSE & VM servers do not support cursors declared with
the "WITH HOLD" clause. However, applications may use the "WITH
HOLD" clause against other DRDA servers if they support it, except when
extended dynamic statements are involved.
- There is no support for the semantics checking of the Flagger, but the
syntax checking of static SQL against the SAA and SQL-89 standards will still
be carried out.
- There is no support for the USERID option of the SQLPREP EXEC.
- There is no support for "USER" in the preprocessing parameter
ISOLATION. The system will override USER with CS.
- There is no support for "LOCAL" in the preprocessor parameters DATE
and TIME. If specified, SQLCODE -168 (SQLSTATE 42615) will be
generated, indicating an incorrect parameter.
- There is no support for the blocking of PUTs. However, the PUT
operation will still be supported one row at a time as unblocked
inserts.
- The following ISQL commands are not supported when using the DRDA
protocol, because they request functions specific to DB2 Server for VM:
- SET ISOLATION
- COUNTER
- SHOW
- The following DBSU commands are not supported when using the DRDA
protocol, because they request functions specific to DB2 Server for VM:
- UNLOAD DBSPACE
- UNLOAD TABLE
- UNLOAD PACKAGE
- RELOAD DBSPACE
- RELOAD TABLE
- SET ISOLATION
- SET UPDATE STATISTICS
- REBIND PACKAGE
- REORGANIZE INDEX
- FORTRAN packages and any other packages created by using extended dynamic
statements that were created in SQLDS protocol cannot be RELOADed by the DBS
Utility in DRDA protocol, or the other way around.
- Portable packages created under SQL/DS Version 2 Release 2 cannot be
RELOADed by the DBS Utility in DRDA protocol.
- If accounting data is sent from a DRDA application requester to a DB2 for
VSE & VM server, only the first 16 bytes of user-defined data
7
is captured by the server
and put into accounting records.
Footnotes:
- 4
-
IBM SQL is a superset of the |SQL99 Entry Level standard
- 5
-
Entry Level of the International Organization for Standardization (ISO)
9075-1992 Database Language SQL specification
- 6
-
Since DB2 RXSQL uses extended dynamic statements, any restrictions on the use
of extended dynamics apply to DB2 RXSQL as well.
- 7
-
For example, from DDCS for OS/2 user-defined data can be set by the
DFT_ACCOUNT_STR configuration parameter.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]