[Migrated content. Thread originally posted on 01 August 2005]
Does anyone have a license manager or a way of tracking the number of users using the system? The number of licenses for AcuCobol may be different from the number they purchase from us. We need to figure out a way to count the number of users using cobol. Environment may be windows server, or unix server, runtime is windows 6.2.Keeping a log and adding and subtracting as people log on and off will not work because if they disconnect improperly, the subtract will never occur and we would have to reset the file count.
In FoxPro, you can open a file exclusively and it it passes the exclusive open then resets the count, close it and open it again not exclusively. All other users have it open too as they log on and the count is incremented by one. When they log off the count is subtracted. The exclusive open for the first user on the system alway resets the count back to 0. That works there.
I am trying to figure out how to do something like that in Cobol so occassionaly, the count will be reset back to zero when there is no one on the system or back to one when the first user logs on.
Perhaps you have a better method to handle tracking the number users. Any solutions or ideas would be greatly appreciated.
Patty



