Enables a single userid to be used to sign on to more than one terminal at once, with each terminal sharing the same menu and session list.
This common end-user parameter is applicable to these control statements: SYSTEM (see SYSTEM statement), PROFILE (see PROFILE statement), USER (see USER statement), and TERMINAL (see TERMINAL statement).
SHARESESS [Yes|No|ON|OFF]
[MAXUSRlogin nnnn]
If one terminal takes over a session from another, the first will lose control of the session, and receive a message to that effect.
For example, if USERA, with SHARESESS set to YES, signs on to terminal TERM1 and then signs on to terminal TERM2, both terminals will display the same menu and session list. If a session is started on TERM1, the session will be displayed as active on both terminals. In this case the owner of the session is TERM1, and TERM1 will remain the owner even if the user on TERM1 escapes and starts another session.
If however, the user on TERM2 selects a session owned by TERM1, then TERM2 will take over the ownership of the session. Any data that has been typed but not entered on the original terminal will be lost. If the session is still visible on TERM1, the terminal will be returned to the menu with the following message:
ISZ0482W Session nnnn taken over by uuuu at tttt zzzzzzz
where nnnn is the session number, uuuu is the userid of the new owner (always the same as the userid of this user) and tttt zzzzzzz are the terminal type and terminal name respectively of the new owner.
This same message will also be written to the audit log, prefixed with the userid and the terminal type and name of the original owner of the session.
If a LOGOFF command is entered at any terminal signed on to by a SHARESESS user then all other terminals signed on with that userid will also be signed off. If, however, a DISCONNECT command is entered at any terminal signed on to by a SHARESESS user then only that terminal is disconnected.
When a SHARESESS user signs on and there is no other terminal signed on (or disconnected) with the same userid then this becomes the primary user. Subsequent terminals signing on with the same userid become secondary users. All sessions started by primary or secondary users are primary user sessions.
Note: Only one of SHARE, SHAREDISC and SHARESESS should be set to Yes at any one time.
Specifies the maximum number of SHARESESS logins permitted for this user. nnnn is a value up to 9999.