I implemented a similar counter for the same purpose where I formerly
worked. I think it worked as follows (or this is how I would do it now):

I kept a file in PUB.account. It contained a number that was the high-water
mark of the system variable HPSESCOUNT. For each logon, the logon UDC would
input the file into a variable and compare the variable with the current
HPSESCOUNT. If the new value was higher, the file would be overwritten with
the ECHO command.

You could get fancy and include the date and time and other information in
the file.


====================
Leonard S. Berkowitz
(work) mailto:[log in to unmask]
(home) mailto:[log in to unmask]