ATTACH

Description

Establishes a logical connection from Open ClientConnect to Mainframe Client Connect and, ultimately, to a target DBMS using the SNA or TCP/IP link.

Syntax

Syntax varies with the programming language.

Parameters

The ATTACH command uses values from these SPAREA fields:

Examples

COBOL II

MOVE 'SPDB2N1' TO SPSERVER.
 MOVE 'JWILS32' TO SPUSERID.
 MOVE '3LTB2AP' TO SPPWD.
 CALL 'ATTACH' USING SPAREA.

Usage

During the attach process, Open ClientConnect establishes an APPC conversation with Mainframe Client Connect, which in turn, establishes a conversation with the target DBMS, using a LAN protocol.

Before it calls the ATTACH command, the CSA must: