View Full Version : Kill User Sessions
Guest.Visitor
01-01-1995, 02:00 AM
We have a lights out shop but we do a lot of batch processing everyday starting at 7 p.m.. I am looking for a way to kill user sessions from a CL program that is called out of work scheduler for users that did not log off. Occasionally a user will have a record locked in their session that they left on that holds up my batch processing until the session is killed and the record released. I do not want to end the QINTER subsystem to kill the sessions. Any suggestions?
Guest.Visitor
01-28-2000, 12:09 PM
Hi Terry, IMO You would be better off to kill QINTER so that no one could sign on, but you don't have to. I'd do it in java because I can get a JobList, determine jobs running in QINTER, and invoke ENDJOB fairly easily. The more traditional way would be: WRKSBSJOB QINTER *PRINT ( I'm offline from a 400 right now, so double check 400 command syntax. ) Use CPYSPLF to get the print output to a data file -- there's no *OUTFILE for WRKSBSJOB -- and read the data using %SST to parse the info. Get the Job Info and invoke ENDJOB for each entry with controlled or immediate as you prefer. I assume you'll be in qinter, so the program should check for a standard user or device and bypass. Best, Joe Sam Joe Sam Shirah Autumn Software Consulting/Development/Outsourcing Please Note New Email: jshirah@attglobal.net Visit our User Group at: http://www.jax400.com
Guest.Visitor
01-29-2000, 01:46 PM
Thanks for the tip. I used your logic and set it up, works like a champ.
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.