CURRENT CLIENT_ACCTNG

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)
  • Start of changeSQLSetConnectAttr (ODBC) End of change
  • Start of changejava.sql.Connection.setClientInfo (JDBC)End of change
  • 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.

Start of changeThe application compatibility value of the package determines the length and blank padding of the CURRENT CLIENT_ACCTNG special register returned.End of change

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.

Example: Get the current value of the accounting string for this connection.
  SET :ACCT_STRING = CURRENT CLIENT_ACCTNG