PDA

View Full Version : User Sessions



Guest.Visitor
01-01-1995, 02:00 AM
Hi, I know I can limit user sessions by using sysval QLMTDEVSSN. Is there a way I can specify a user to have 3 sessions? Or is it just 1 or nolimit? TIA Carl

David Abramowitz
11-16-2000, 03:28 AM
TTBOMK it is only a choice of "1" and no limit. Dave

B.Myrick
11-16-2000, 05:57 AM
David is correct in the 1 or all format as far as IBM is concerned. This does not stop a user from using sys/req to open a new session, because it is actually the same session, just a different job. I have done this in the past by creating a file that is keyed by the user profile and contains a field for current and max interactive jobs. A R SIGNONR UNIQUE A* A PROFIL 10A A ALOWED 1S 0 A CURENT 1S 0 A* A K PROFIL I had a initial program called by each user who was limited. The job read the SIGNONR record based on user and added one to CURENT. If CURENT became greater than ALOWED, SIGNOFF was executed. When the user exits the system, the job subtracted 1 from CURENT. The downfall was that this job stayed active the entire session. It calls the menu or other package on our system. You had to use the WRKACTJOB or WRKUSRJOB and look at the stack if you needed to see what program was currently being used. In the event the system crashed or the user's job ended abnormal and went back to the signon screen, I had a job to reset CURENT by user or for all. Not a perfect solution by any means, but it works. -bret