Using the db2GetSnapshot API,
for request type SQLMA_DBASE_APPLINFO
how can a program know *which* of the
many connections returned
is its own "APPL_ID" , when the program cannot
distinguish this by APPL_NAME or AUTH_ID.
I'm using UDB EE v7.2 on AIX.
In my case there are multiple instances
of the same program running locally
(so I cannot distinguish by APPL_NAME)
and these are often with the same userid
(so I cannot distinguish by AUTH_ID)
therefore the only method is to
distinguish by APPL_ID.
But how to recognize programmatically
which of the many records returned corresponds
to "my" own process ?
I don't know if it is actually possible.
But is there some other API available to retrieve the
current APPL_ID within an application ?