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: 8  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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • 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
  • rajsubhyd
    [...] 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.
    11,790 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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following