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
ASKED:
February 8, 2011 11:28 AM
UPDATED:
February 10, 2011 1:40 AM
WRKACTJOB look for DSC in the STATUS Field, SHIFT F4 to sort
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.
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
…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