Process flow and DirectConnect for z/OS Option requirements

DirectConnect for z/OS Option processing can involve CT-Library, DB-Library, and ODBC. The following figure shows DirectConnect for z/OS Option processing with DB-Library (for more information, see the Mainframe Connect DirectConnect for z/OS Option Users Guide for DB2 Access Services).

Figure 8-3: Client-to-DirectConnect-to-mainframe processing

These points describe the sequence shown in Figure 8-3 and highlight Enterprise Connect requirements. They describe both RPC and dynamic SQL process flows.

  1. Assuming DirectConnect for z/OS Option is started, the client opens a LAN connection to a designated DirectConnect service and logs in. The following message might occur:

    Server name not found in interface file
    

    If so, verify that:

  2. For TRS only – On receiving the client login information, the DirectConnect server checks security as follows:

  3. When the client application needs to invoke an RPC or language request on the mainframe, the client sends a request to the DirectConnect server over the LAN connection.

  4. The DirectConnect server receives the request and searches the lookup table to find the mainframe session and the Server Option transaction ID to use. Entries for the RPC and connection must occur in the table. If security is turned on, the client must have authorization to use the RPC and connection to the mainframe. If the lookup table search and security check are successful, the line is up, and the session is active, the DirectConnect server allocates a conversation with the named transaction.

    If a failure occurs during this process, one of these error messages is written to both the DirectConnect for z/OS Option log and client:

  5. The DirectConnect server sends the client’s External Data Representation (XDR) information and RPC parameters to the mainframe and waits for a reply from the transaction.

  6. On the mainframe, the transaction processor initiates the named transaction, and the transaction issues the Server Option Gateway-Library calls. These calls read the client’s XDR information and RPC parameters. The transaction also performs associated processing, such as the issuing of static SQL DB2 requests or reading VSAM or other database data.

  7. The transaction issues Gateway-Library calls to send results back to the client. These calls perform any data conversions, generate the TDS reply datastream, and send out reply data.

  8. The DirectConnect server receives each TDS reply packet and forwards it to the client, which continues until the Server Option transaction issues a TDSNDDON call.

    If a failure occurs during this process, an error message is written to the DirectConnect server log. An “Unexpected EOF from Adaptive Server” message is written to the client. (The mainframe is acting as an ASE.)

    Gateway-Library tracing functions, if in use, also record errors in this process. See Figure 8-2.

  9. When finished with the request, the transaction exits, and the conversation terminates. For a long-running transaction (also called a user-defined transaction), the transaction can remain active through multiple requests before the conversation terminates. If a long-running transaction ends before it finishes processing, you should determine whether the appropriate client support is set up:

NoteAMD2 supports user-defined transactions, which are comparable to long-running transactions based on Gateway-Library support.