WAIT/LOOP Procedure

If your program is in a wait state, no action is required. If the problem looks like a wait state and your program is not waiting for input from the terminal, it is probably a system problem. In this case, follow your local procedures for resolution. Otherwise, follow the appropriate procedure in this section, depending on whether the problem occurred during compilation or at runtime.

For Compilation Failures

  1. Gather diagnostic information as follows:
    • Under z/OS®, if you note a wait or loop condition, refer to the corresponding z/OS documentation to diagnose the problem.
    • Under z/VM®:
      1. While the program is looping, display the PSW by entering:
        #cp d psw
      2. Record the contents of the PSW. Your IBM Support Center representative might ask for this information.
  2. Add the keyword LOOP to the keyword string.

    Your keyword string could now look like this

    For z/OS:     569501303 R140 LOOP
    For z/VM:     569501304 R140 LOOP

Go to Searching for a Solution.

For Library Failures

  1. Check whether your REXX source program contains an endless program loop. Debugging the program with the TRACE facilities might help to detect a loop. To be able to use the TRACE facilities, you must compile your program with the TRACE Compiler option.
  2. If the problem is still unresolved, gather diagnostic information for later use, as follows:
    • Under z/OS, if you note a wait or loop condition, refer to the corresponding z/OS documentation to diagnose the problem.
    • Under z/VM:
      1. While the program is still looping, display the PSW by entering:
        #cp d psw
      2. Record the contents of the PSW. Your IBM Support Center representative might ask for this information.
    • Under VSE/ESA, if you encounter a wait or loop condition, refer to VSE/ESA: Guide for Solving Problems to diagnose the problem.
  3. Add the keyword LOOP to the keyword string.

    Your keyword string could now look like this

    For z/OS:     569501403 R140 LOOP
    For z/VM:     569501404 R140 LOOP
    For VSE/ESA:  568606612 R55I LOOP

Go to Identify the Module.