SPAREA field descriptions

The CSA and Open ClientConnect use the SPAREA by putting values into and retrieving values from the SPAREA fields to communicate. The word Reserved in the descriptions indicates that the CSA cannot write to the field.

SPHEADER

SPHEADER contains the character string *SPAREA*. The character string serves as an eye catcher for locating the SPAREA in a dump. Reserved.

SPRESRVD

SPRESRVD contains values used by Open ClientConnect to process commands. Reserved.

SPSTATUS

Open ClientConnect uses SPSTATUS to indicate the success or failure of processing. This value refers to processing on the remote database. Valid values are:

SPCODE

Only RSPs use SPCODE. Reserved.

SPFORMAT

The CSA uses SPFORMAT to specify the data format when opening a data pipe. The only valid value for CSAs is DB2.

SPMODE

The CSA uses SPMODE to specify the mode of the data pipe. The only valid value for CSAs is INPUT.

SPRC

Open ClientConnect uses SPRC to indicate the success or failure of a CSA command. Valid return codes are:

SPSQLDA

Open ClientConnect uses SPSQLDA to specify the address of a SQLDA that describes the data records. For details, see IBM SQL Reference for DB2.

SPROWS

SPROWS contains the number of rows returned for CSA requests that return data.

SPPREFIX

Open ClientConnect uses SPPREFIX to provide messages with an appropriate message prefix. Reserved.

SPMSG

Open ClientConnect uses SPMSG to place message text to be retrieved by the CSA with a GETMSG command.

SPFILL2

SPFILL2 is used for slack bytes in the SPAREA. Reserved.

SPSQL

The CSA uses SPSQL to specify a pointer to the SQL request buffer containing the SQL statements it is sending to Open ClientConnect.

SPSERVER

The CSA uses SPSERVER to provide the name of the LAN-based server on the remote platform to which the CSA connects. The CSA must provide the SPSERVER or the SPATTACH before issuing the ATTACH command.

SPATTACH

The CSA uses SPATTACH to provide the name of the Sybase attachment definition to connect to the remote platform for backward compatibility. The CSA must provide SPATTACH or SPSERVER before issuing the ATTACH command.

If the attachment definition is specified but not found in the PCSQLSP file, the attachment name is used as the server name.

SPUSERID

The CSA uses SPUSERID to specify a user ID required by the remote database (for example, Adaptive Server Enterprise, DB2, or DBM). For backward compatibility, if the CSA does not specify SPUSERID and a Sybase attachment name is used and found in the PCSQLSP file, the CSA uses the user ID in the attachment definition is used.

SPPWD

The CSA uses SPPWD to specify a password required by the remote database. For backward compatibility, if the CSA does not specify SPPWD and a Sybase attachment name is used and found in the PCSQLSP file, the CSA uses the password in the attachment definition.

SPCMPOPT

SPCMPOPT is no longer used.

SPIND

Open ClientConnect uses SPIND to inform a CSA that an additional message is available. Valid values are:

SPDATE

Open ClientConnect uses SPDATE to inform a CSA of the date that a request ran. This field contains a value in the form YY/MM/DD.

SPTIME

Open ClientConnect uses SPTIME to inform a CSA of the time that a request ran. This field contains a value in the form HH:MM:SS.

SPCONFIG

SPCONFIG is no longer used.

SPEND

The assembler programming language uses SPEND as a label indicating the end of SPAREA. COBOL II, C, and PL/1 SPAREA descriptions do not include SPEND.

SPTRCOPT

SPTRCOPT controls the trace option. If this field contains 'Y' when an Open ClientConnect command is issued, trace records are written to the TSQ, CExxxxxx, where xxxxxx is the first six characters of the user ID.