Skip to main content
hello everybody,

Do you have any idea how to limit a SBuser to only 1 (or n)  open session ? 

many thanks
hello everybody,

Do you have any idea how to limit a SBuser to only 1 (or n)  open session ? 

many thanks
Hi Manu,
You could write your own routine to do this either before or after SB.LOGIN using the following information.

DMCONT SB.ACCOUNTS
<2.mv> - SB User Name
<7.mv> - OS User Name

DMSECURITY $PASS:Port
<7> contains the SB user name

Before SB.LOGIN (In the LOGIN Proc)
- Add a program in the LOGIN proc before SB.LOGIN is executed
- Read DMCONT SB.ACCOUNTS and count the number of times the OS user name is found in attribute 7

After SB.LOGIN (Could be done in any number of different process slots)
1. Do the same as before the using either the SB user name or OS user name
2. SELECT DMSECURITY WITH Field7 = "SBUserName" and the return value will tell you how many sessions that SB user currently has running

Let me know if you have any questions
Thanks
Stuart