After a loop is recorded you can customize it if necessary to meet your requirements (see the customizing of the recorded loop in the first tutorial, Step 3.3: Add logic to the invoked flow).
A very common scenario in which a recorded loop is useful is a multipage list of items, like the multipage list displayed in the CICS example catalog application that is recorded in the first tutorial (see C. Record the flow information). Typically each page in such a list has the same layout and similar wording in the header and footer. But the central area of the page where the items in the list are displayed is different for each page: the first page might display items 0001 through 0015, the second page items 0015 through 0019, and so on through the pages until all the items in the list are displayed. The number of pages required to display the entire list varies, depending on the number of items in the list at the time.
R,S,T,(U1),(U2),(U3),(U4),V, W, X
Screens U1 through U4 are the application screens that the user encounters when paging all the way through the multipage list from start to finish. These four application screens have similarities in format and in the wording of the headers and footers, while the central area of each screen displays the sequential items in the list. The number of pages required to display all the items in the list can be greater or less than four, depending on the number of items in the list.
Because of the similarities in appearance of application screens U1 through U4, a single screen description (U) can be used to recognize all four application screens. Consequently these application screens can be recorded as four iterations of a single loop, with each iteration consisting of one application screen.
Moreover, the recorded loop generalizes the information in the application screens so that the loop can handle any number of iterations.
Less commonly a repeated sequence can consist of more than one application screen (see Repeating sequence of multiple application screens).