+ Reply to Thread
Results 1 to 3 of 3

Thread: Kill User Sessions

  1. #1
    Guest.Visitor Guest

    Default Kill User Sessions

    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?

  2. #2
    Guest.Visitor Guest

    Default Kill User Sessions

    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

  3. #3
    Guest.Visitor Guest

    Default Kill User Sessions

    Thanks for the tip. I used your logic and set it up, works like a champ.

+ Reply to Thread

Similar Threads

  1. Could Microsoft's Vulnerabilities Kill E-Business?
    By Terry Winchester in forum Commentary
    Replies: 10
    Last Post: 06-05-2007, 04:32 PM
  2. Kill signon screen?
    By Guest.Visitor in forum General
    Replies: 3
    Last Post: 06-21-2005, 11:03 AM
  3. Novell user can't start multiple sessions.
    By Guest.Visitor in forum Programming
    Replies: 2
    Last Post: 12-26-2001, 03:18 PM
  4. Want to kill a server box?
    By J.Pluta in forum IBM i (OS/400, i5/OS)
    Replies: 2
    Last Post: 04-26-2001, 12:20 PM
  5. User Sessions
    By Guest.Visitor in forum Analysis
    Replies: 2
    Last Post: 11-16-2000, 05:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts