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:
Establish the client services environment
Make and close the required LU 6.2 or TCP/IP connections
Communicate message and status information with Open ClientConnect
Send SQL requests for execution
Manage data pipes and receive data from Open ClientConnect
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.
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. |
|
CLOSPIPE |
Closes the data pipe. |
|
CSSETUP |
Establishes the client services environment. |
|
DETACH |
Terminates the APPC connection. |
|
GETMSG |
Retrieves messages generated during remote processing. |
|
GETPIPE |
Reads a record from a data pipe. |
|
OPENPIPE |
Opens a data pipe. |
|
REQEXEC |
Sends the contents of the request buffer for the remote database to execute, and initiates execution. |
|
RESCHECK |
Checks the status of results returning from the remote database. |
The CSA commands use the values of fields in the SPAREA as parameters. For details on the SPAREA, see Appendix E, “The SPAREA.”