CLIENT_APPTOKEN global variable
This built-in global variable contains the application identification token (or apptoken) of the current client, as returned by a callback function on connect.
This global variable has the following characteristics:
- It is read-only, with values maintained by system.
- The type is VARBINARY(32672).
- The schema is SYSIBM.
- The scope of this global variable is session.
If no apptoken was generated, the value of the CLIENT_APPTOKEN global variable is NULL. The value is only available to the TRUST PROCEDURE and is NULL after the trust procedure is evaluated.