Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I force users to log off after 12 consecutive hours

Status
Not open for further replies.

tbrowne

IS-IT--Management
Dec 27, 2001
51
US
I need the ability to force users to log off of the AS/400 system and start a new session after the current session has been active for 12 hours. I'm aware that I can set the session to close after any period of inactivity; however, I need the users off even if the session has been active during the set time limit. This is security requirement that I have no control over and any help is appreciated.
 
how about this?
add the clp(pgma) to the user profile.

pgma is like this:

pgm
dcls
...
rtvjoba...
sbmjob rqsdta(call lib/pgmb)
endpgm

pgmb:

pgm
dcls
...
dlyjob 12hours
endjob ... *immed
monmsg cpf0000
endpgm


 
Thank you for the replies. Setting QINACTITV won't work for me because I need the jobs to end even if they are active. The second method has real merit and I'll pursue that idea. Tnanks again for the help, it proves one more time that two heads are better than one!
 
It there a certain time frame that the users can be logged on? If so, what prevents them from logging off then on again? Mike Wills
IBM iSeries (AS/400) Programmer
[pc2]

Please, if you find my post useful, let me know. [thumbsup2]
 
The only requirement is that no user job ever exceeds twelve hours. A user is permitted to sign off and then immediately log back on. The requirement is set by the State of Ohio for users accessing Law Enforcement Automated Data System, LEADS, records. The AS/400 does not natively provide this feature nor does the vendor that writes the Public Safety software.
 
The programs mudface gave you will work, however a couple things you need to be aware of.

1) You need to submit to a jobq that will allow many jobs running at once.

2) Each program will take up resources (so if those are scarce, this could cause problems. Mike Wills
IBM iSeries (AS/400) Programmer
[pc2]

Please, if you find my post useful, let me know. [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top