IBM i Global

IBM i Global

Connect, learn, share, and engage with IBM Power.

 View Only
Expand all | Collapse all

Any way to determine if an interactive job is no longer connected to the system so that it can be ended

  • 1.  Any way to determine if an interactive job is no longer connected to the system so that it can be ended

    Posted Wed August 19, 2020 07:08 PM

    Users are selecting the "X" in the top right corner of the screen on the IBMi 5250 session. This closes the session, but leaves the interactive job running in the background. This causes issues when we want to run night jobs. Is there any way to determine that there are orphan jobs running and shut them down? I would want to do this periodically throughout the day.


    #IBMi
    #Support
    #SupportMigration


  • 2.  RE: Any way to determine if an interactive job is no longer connected to the system so that it can be ended

    Posted Sun October 18, 2020 10:24 PM

    You can set your QINACTITV (Inactive job time-out) and QINACTMSGQ (Inactive job message queue) system values.

    The subsystem will check every x minutes (where x is value of QINACTITV) for inactive jobs and mark all those that it sees. The next cycle the subsystem will take the action provided by QINACTMSGQ (either end or disconnect job) for all jobs that have been inactive since the last cycle. I've included a link that goes into more details.

    https://www.ibm.com/support/pages/qinactitv-system-value


    #IBMi
    #SupportMigration
    #Support