z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Getting rid of a hung application

z/OS UNIX System Services User's Guide
SA23-2279-00

If your application hangs, try the following procedure to kill it:

  1. On the command line, enter <EscChar-V> (or <EscChar-C>). When this is successful, the shell prompt is displayed.
  2. If step 1 does not work, enter the OPEN or NEXTSESS subcommand to start or switch to a second shell session. In the second shell session, determine the process identifier (PID) of the hung application by entering ps -ef.

    Then enter kill -s KILL nnnnnn, where nnnnnn is the PID obtained from the ps -ef command. After the kill command completes, you can return to the first session using the NEXTSESS or PREVSESS subcommand.

  3. If step 2 does not work, enter the QUIT subcommand, or QUITALL if more than one session is active. This should free your TSO/E terminal, and you can then enter the OMVS command to start another session. The application may still be hung; if so, you need to use the kill command.
  4. If step 3 does not work, ask the operator to cancel your TSO/E user ID, using the CANCEL command. The operator may also need to use the FORCE command.
  5. If step 4 does not work, try a VTAM® logoff (using the <SYSREQ> key), and wait long enough for MVS™ to end your session before you try to log on again.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014