CS_APPNAME specifies an application name, which is used as follows:
At the context level, CS_APPNAME specifies a configuration file section from which ct_init reads default Client-Library context properties. See “Using the runtime configuration file” for a description of this feature. CS_APPNAME is set at the context level by calling the CS-Library routine cs_config.
At the connection level, CS_APPNAME defines the application name that a connection will use when connecting to a server. If external configuration is enabled for the connection, CS_APPNAME may also identify a configuration file section from which ct_connect reads default properties, server options, and capabilities for the connection. See “Using the runtime configuration file” for a description of this feature.
Adaptive Server uses application names to identify connection processes in the sysprocesses table of the master database.
When a connection structure is allocated, it inherits the CS_APPNAME setting from the parent context structure. If the inherited value is not changed, it becomes the application name when the connection is opened. Applications change the application name for a connection by calling ct_con_props before the connection is opened.