z/OS TSO/E CLISTs
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Structuring CLISTs

z/OS TSO/E CLISTs
SA32-0978-00

A CLIST can be:
  • A single list of commands and statements
  • A series of short lists connected by statements indicating which list is to be executed next

When you create a CLIST as a series of short lists, you can connect the lists using structured programming techniques. In structured programming, you direct the flow of execution from list to list in a generally top-down sequence, from the highest to the lowest level of detail. At the lower levels of detail, the lists can be independent modules (subprocedures and nested CLISTs) containing common code that you can call from other parts of the CLIST. A structured CLIST helps you avoid repetitive code and is easier to read and maintain than an unstructured CLIST.

This chapter describes the structural elements of the CLIST language and how to use them to move from one list of commands and statements to another. Structural CLIST statements belong to the following categories:
  • Selection
  • Loops
  • Calls to subprocedures
  • Calls to other CLISTs

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014