Finding active disconnected sessions in AS/400

105 pts.
Tags:
AS/400 Active Jobs
AS/400 administration
AS/400 user sessions
Is there any way to find the Disconnceted session which are still Active on the AS/400 server. I mean the Session is disconneted on the PC (like closing 5250 Display emulator) but the JOB is still runing on the server.  

Software/Hardware used:
AS/400

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you are looking for disconnected interactive session, doing a WRKACTJOB and then doing a F14 will show all of them,

Discuss This Question: 11  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Jaymz69
    WRKACTJOB look for DSC in the STATUS Field, SHIFT F4 to sort
    765 pointsBadges:
    report
  • rajsubhyd
    Thank you for the response. How can we findout the same in RPGLE. I am using API QUSLJOB but it looks like providing all the Active jobs ie not differentiating the Job got disconnected from the display.
    105 pointsBadges:
    report
  • Kaisersosa
    Raj, Just curious, do you need this information in order to kill them with an eye to freeing up resources like, files still in use? If so, there is a technique for putting code in an rpg program that makes it 'aware' that it is ending and allows it to do housecleaning before it ends. If that would be helpful let me know and i can post some code. John B
    275 pointsBadges:
    report
  • TomLiotta
    ...not differentiating the Job got disconnected from the display. The list returned from QUSLJOB should differentiate the jobs by returning the 'Active job status' for each job for format JOBL0200. Request key field 0101 to get 'Active job status' back. A disconnected job should return its status as 'DSC '. Tom
    125,585 pointsBadges:
    report
  • The Most-Watched IT Questions: February 22, 2011 - ITKE Community Blog
    [...] One member’s trying to clean up his system by finding active disconnected sessions in AS/400, and the community showed up to [...]
    0 pointsBadges:
    report
  • Rayj1031
    Is there a command that will display disconnected jobs? Or am I just dreaming. I found a disconnected job and resolved a problem about a month ago, and I thought there was a WRKDSCJOB command,
    335 pointsBadges:
    report
  • TomLiotta
    ...I thought there was a WRKDSCJOB command,
    .
    I don't currently have i 7.1 available, so there might be such a command that I won't see in the latest release. Info Center should show if one exists. No such command is natively available in earlier releases.
    .
    The WRKACTJOB command with the SEQ(*STS) parm and maybe also SBS(QINTER) is one way to list the jobs, though F14=Include needs to be pressed to include disconnected jobs. For many sites, maybe a better way is WRKSBSJOB SBS(QINTER). The list of jobs is shorter and disconnected jobs are automatically shown. For larger sites, the list in WRKSBSJOB isn't sorted by 'Status', so WRKACTJOB can be better. (But larger sites should have a developer who can generate a WRKDSCJOB command anyway.)
    .
    It's not hard to create such a command, which is apparently what this question leads to.
    .
    Tom
    125,585 pointsBadges:
    report
  • ToddN2000
    Some time we'd have phantom/disconnect jobs still active. They did not show up in the WRKACTJOB command. We found this because we limit users to 2 sessions. When they tried signing on with only one active we could see it would refuse the log in. We found their disconnected job by going into Operations Navigator / Work Management / Active Jobs. We found their "phantom" job on the list,did a right-click on job and selected end.
    53,325 pointsBadges:
    report
  • TheKite
    There is system value QDSCJOBITV which defines the time jobs in DSC are kept alive.  Lowering it willmake the system end the disconnected jobs automagically
    10 pointsBadges:
    report
  • ugurilbeyi
    You can use wrkusrjob *all *active and then select DSC from status column.   
    10 pointsBadges:
    report
  • TheRealRaven
    You could use WRKUSRJOB, but WRKACTJOB should be quicker on many systems. There might be (many) thousands of jobs, and WRKACTJOB lets you sort by 'Status' and F7=Find lets you jump directly to any disconnected (status DSC) jobs. Scrolling through (many) jobs is eliminated that way.

    WRKUSRJOB does let you request only *INTERACT jobs, but WRKACTJOB gives almost the same by allowing selection of interactive subsystems.
    18,995 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: