Using CSA commands

This section is a brief introduction to CSA commands. In addition to reading this introductory material, you should review each command in detail before continuing with this chapter. See Appendix A, “CSA Commands” for detailed information about each command.

Use the CSA commands to:

Before you issue a CSA command, move values to the relevant fields in the SPAREA, and then issue a standard system CALL statement.

The following table summarizes the CSA commands and their functions.

Table 2-1: CSA commands and functions

This command

Performs this function

See page

ATTACH

Establishes a logical connection between Open ClientConnect and Mainframe Client Connect and a target DBMS or directly to the target DBMS.

ATTACH

CLOSPIPE

Closes the data pipe.

CLOSPIPE

CSSETUP

Establishes the client services environment.

CSSETUP

DETACH

Terminates the APPC connection.

DETACH

GETMSG

Retrieves messages generated during remote processing.

GETMSG

GETPIPE

Reads a record from a data pipe.

GETPIPE

OPENPIPE

Opens a data pipe.

OPENPIPE

REQEXEC

Sends the contents of the request buffer for the remote database to execute, and initiates execution.

REQEXEC

RESCHECK

Checks the status of results returning from the remote database.

RESCHECK

The CSA commands use the values of fields in the SPAREA as parameters. For details on the SPAREA, see Appendix E, “The SPAREA.”