Iterator Operator

The Iterator operator provides a looping construct for view models.

Based on criteria you specify, an Iterator repeatedly executes the portion of the flow upstream from its position and accumulates the results. You might use an Iterator if, for example, you need to execute a parameterized input source once for each of a series of dates, sales regions, or customer IDs. You can use the Iterator operator in two ways:


Note: You can create nested iterations (for example, a SELECT within a SELECT) by incorporating multiple Iterator operators into your flow. In a pair of Iterator operators, the downstream one forms the outer loop and the upstream one forms the inner loop.

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.