Hi,
using db2 v9.5 fp2 on Linux I would like to write select statement that would return current application name.
I can write: "db2 list application" which returns:
Code:
Auth Id Application Appl. Application Id
Name Handle
-------- -------------- ---------- -----------------------------
GROFATY db2bp 15374 C0A804A0.KE0B.021543042035
I know I can get "Application Id" with select:
Code:
select application_id() from sysibm.sysdummy1
but how to get "Application Name"? In my case "db2bp".
I need this "Application Name" info because I would like to create trigger to collect application name which updated the record.
Regards,
Grofaty