Use the SLEEP statement to define a pause for a specified number of seconds between statements. This statement is useful when you want to ignore events in the 3270 session for a set period of time, or to synchronize events.


This picture shows the syntax of the SLEEP statement.




To use the 3270 Script window’s Statements menu to define a SLEEP statement, follow this procedure:

  1. From the Welcome window, click on Applications —> 3270 Servers
  2. Selecting the SLEEP statement : Click Statements —> Sleep.

    The system displays the Enter Data window.

  3. Specifying the seconds : Type the number of seconds you want the system to “sleep” in the entry field.
  4. Adding the statement to the script : Click OK.

    The SLEEP statement is added to the script.