The APPLICATION_ID function returns the application ID of the current connection. The data type of the result is VARCHAR(128).
The value returned by the function is unique within a 100-year interval and valid only for the duration of the connection established before calling the function.
SELECT APPLICATION_ID() AS APPL_ID FROM SYSIBM.SYSDUMMY1