Previous Topic: Write a Signon Program for Multiple ApplicationsNext Topic: Sample Program


Allow Other Work to be Dispatched

ACL/E programs that perform a tedious or redundant task continue to run without stopping until the entire task is completed. If there are no breaks in the ACL/E processing, CA TPX processes the statements as fast as the system allows and work from other users might not be dispatched until the program stops.

To prevent this, use a WAIT command to periodically interrupt the program, possibly once per iteration of a loop, to allow other work to be dispatched. Other commands that relinquish control are ENTER, PF, PA, INPUT, PAUSE, SEND, and SUSPEND.

A runaway limit can be set for a program to limit the number of times a loop can be executed. See Prevent Uncontrolled Loops.