IBM Books

Administrative API Reference

SQLE-NODE-TCPIP

This structure is used to catalog TCP/IP nodes (see sqlectnd - Catalog Node).

Note:To catalog a TCP/IP SOCKS node, set the PROTOCOL type in the node directory structure to SQL_PROTOCOL_SOCKS before calling the sqlectnd API (see SQLE-NODE-STRUCT).

Table 40. Fields in the SQLE-NODE-TCPIP Structure
Field Name Data Type Description
HOSTNAME CHAR(255) The name of the TCP/IP host on which the DB2 server instance resides.
SERVICE_NAME CHAR(14) TCP/IP service name or associated port number of the DB2 server instance.
Note:The character fields passed in this structure must be null terminated or blank filled up to the length of the field.

Language Syntax

C Structure



/* File: sqlenv.h */
/* Structure: SQLE-NODE-TCPIP */
/* ... */
SQL_STRUCTURE sqle_node_tcpip
{
  _SQLOLDCHAR    hostname[SQL_HOSTNAME_SZ+1];
  _SQLOLDCHAR    service_name[SQL_SERVICE_NAME_SZ+1];
};
/* ... */
 

COBOL Structure



* File: sqlenv.cbl
01 SQL-NODE-TCPIP.
    05 HOSTNAME               PIC X(255).
    05 FILLER                 PIC X.
    05 SERVICE-NAME           PIC X(14).
    05 FILLER                 PIC X.
*
 


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]