Previous Topic: Wait for InputNext Topic: Examine User Input


Suspend the Program

You can use the PAUSE command to suspend execution of a program until the user presses an action key (Enter, Clear, PA, and PF) at the terminal. When you do this, the user can select from a menu or enter data on the application screen before the next ACL/E program statement is executed. The user action is transmitted to the application, and execution resumes when the application responds to the user's input.

In the following program, the PAUSE command tells ACL/E to wait for the user to type a CICS password and press the Enter key:

       KEY 'LOGON CICS'           Key 'LOGON CICS.' 
       ENTER                      Enter it.
       SEARCH 'ENTER PASSWORD'    See if CICS is responding.
       BRANCH NE,END              If not, quit.
       PAUSE                      If CICS prompts with 
*                                 'ENTER PASSWORD,' 
*                                 allow user to enter the 
*                                 password. 
END    STOP