+ Reply to Thread
Results 1 to 2 of 2

Thread: Identifying Users in an application twice from the same session

  1. #1
    Guest.Visitor Guest

    Default Identifying Users in an application twice from the same session

    I need a method to identify (within a CL pgm) when a user is in an application, then uses SysReq 1 to sign on again and enters the same application. I would like to do it without saving the User ID and Job Number in a file. I have a CL pgm which will check Active Jobs and identify when a user is in the same application in multiple sessions (the user is listed twice) but it does not work if the user is in the application on 'both sides' of a single session. Only the current session appears in the WRKACTJOB screen. Thanks, Alan Smith alan_smith@unigroupinc.com

  2. #2
    Guest.Visitor Guest

    Default Identifying Users in an application twice from the same session

    Alan, Just create an object, say a data area named after the user, and then have your application allocate it exclusively (with alcobj command). Then when they try to sign on for the second time your CL program won't be able to allocate the object exclusively and you can respond to the user with a message. This solution is better than a file with a flag in it simply because when the user signs off all of the allocations are removed automatically. If you use a flag in a file and a user turns off their machine without signing off then the flag isn't removed. chuck Opinions expressed are not necessarily those of my employer. "alan_smith" wrote in message news:4e6883dd.-1@WebX.WawyahGHajS... | I need a method to identify (within a CL pgm) when a user is in an application, then uses SysReq 1 to sign on again and enters the same application. I would like to do it without saving the User ID and Job Number in a file. | | I have a CL pgm which will check Active Jobs and identify when a user is in the same application in multiple sessions (the user is listed twice) but it does not work if the user is in the application on 'both sides' of a single session. Only the current session appears in the WRKACTJOB screen. | | Thanks, | Alan Smith | alan_smith@unigroupinc.com

+ Reply to Thread

Similar Threads

  1. STRCODE messages from anther users session
    By Matt.Tyler in forum Dev Tools
    Replies: 3
    Last Post: 05-14-2002, 11:19 AM
  2. Identifying optical devices
    By Guest.Visitor in forum Application Software
    Replies: 2
    Last Post: 10-05-2000, 01:42 AM
  3. All users have the same Client Access AS400 Session icon?
    By Guest.Visitor in forum Programming
    Replies: 2
    Last Post: 08-28-2000, 07:20 AM
  4. Calling an 5250-Session from an PC-Application
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM
  5. Application Serving To Users
    By Guest.Visitor in forum Networking
    Replies: 0
    Last Post: 01-01-1995, 02:00 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