CURRENT CLIENT_ACCTNG special register

CURRENT CLIENT_ACCTNG contains the value of the accounting string from the client information that is specified for the connection.

The data type is VARCHAR(255).

The value of the special register can be changed by using one of the following application programming interfaces (APIs):

  • Set Client Information (sqleseti)
  • SQLSetConnectAttr (ODBC)
  • java.sql.Connection.setClientInfo (JDBC)
  • The RRS DSNRLI SIGNON, AUTH SIGNON, CONTEXT SIGNON, or SET_CLIENT_ID function
  • The WLM_SET_CLIENT_INFO stored procedure

The value for the accounting string will be obtained first from the accounting string that is set by the SET_CLIENT_ID function, AUTH SIGNON function, or the Set Client Information (sqleseti) API, or alternatively from the accounting token set by RRSAF if accounting string has not been set.

The application compatibility value of the package determines the length and blank padding of the CURRENT CLIENT_ACCTNG special register returned.

If one of these APIs is not used to set the value of the special register, an empty string is returned when the special register is referenced.

Start of changeCICS® attachment facilityEnd of change
Start of change

For CICS tasks that access Db2, the CICS attachment facility normally does not pass an accounting string to Db2, unless the origin data for the CICS task contains adapter data that specifies the origin of the CICS task. If origin adapter data is present, the CICS attachment facility passes the data to Db2, preceded by an eye-catcher. For example:

CICS_ORIGIN_DATA:ADAPTER_DATA_1_2_3:adapter-data

adapter-data is the origin adapter data.

End of change

Example:

The following statement assigns the current value of the accounting string for a connection to host variable :ACCT_STRING.

SET :ACCT_STRING = CURRENT CLIENT_ACCTNG