105 pts.
 Finding active disconnected sessions in AS/400
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

Answer Wiki:
If you are looking for disconnected interactive session, doing a WRKACTJOB and then doing a F14 will show all of them,
Last Wiki Answer Submitted:  February 8, 2011  2:21 pm  by  CharlieBrowne   33,695 pts.
All Answer Wiki Contributors:  CharlieBrowne   33,695 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

WRKACTJOB look for DSC in the STATUS Field, SHIFT F4 to sort

 765 pts.

 

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 pts.

 

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

 245 pts.

 

…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

 110,105 pts.