System Variables › &MAI#SESS
Returns the number of currently defined sessions. This is equivalent to &MAINSESS.