You use the DB2 Call Attach Facility (CAF) to access DB2 subsystems and the data they manage. You do this by calling DSNALI
with the appropriate series of functions. The
MSS emulation of this facility behaves exactly as on the mainframe, with the following exceptions:
- CONNECT function.
- The subsystem parameter (parameter number 2) must be present but is otherwise ignored.
- The termination Event Control Block (ECB) parameter (parameter number 3) must be present but is otherwise ignored. This ECB
is never posted.
- The starting ECB parameter (parameter number 4) must be present but is otherwise ignored. This ECB is never posted.
- The Release Information Block (RIB) pointer (parameter 5) must be present and is set to point to a constant value which contains
items such as an eye-catcher "RIB" and the DB2 subsystem release number of 710 (for DB2 V7.1.0).
- OPEN function.
- The subsystem parameter (parameter number 2) must be present but is otherwise ignored.
- TRANSLATE function.
- No translation is performed. In the SQLCA, SQLCODE is always set to -924, and SQLSTATE is always set to 58006.