Guru: Analyzing User Session Statistics, Part 2
October 26, 2026 Mike Larsen
In part one of this tip, I showed how to determine the number of times a user signed in and signed out of IBM i for a given period. In this tip, I will show how to get the days a user signed in, and how long their session was active.
I use the same table function, QSYS2.HISTORY_LOG_INFO, as before. The code (Figure 1 below) is similar to the code used in the first part of this series, but there are some differences I will point out.
Note that I purposely left the user ID out of the result set …
Read more