TSO/E CLIST Programming

This 5 day class will introduce students to the skills necessary to code CLISTs in z/OS
and OS/390 environments.  The student will learn to:

  • Create and allocate CLIST libraries.
  • Invoke CLISTs and pass parameters to them.
  • Use CLIST instructions to perform terminal I/O.
  • Perform arithmetic calculations and character
  • Use such CLIST programming constructs as: IF statements, SELECT‑WHEN constructs and DO‑WHILE and iterative DO loop sequences.
  • Debug CLISTs via CONTROL statements.
  • Write user‑developed CLIST subprocedures.
  • Issue TSO commands from a CLIST.
  • Trap TSO command output and process the output
    in a CLIST.
  • Use ISPF services.
  • Read and write sequential datasets.
  • Create CLIST‑based ISPF edit macros.
  • Execute CLISTs in batch jobs.

A series of written and lab exercises will be used to reinforce the classroom


Programmer, technical support personnel, and other individuals that need to write CLISTs.


  • Introduction to OS/390, Introduction to z/OS, or
    equivalent experience.
  • TSO/ISPF, or equivalent experience.
  • Previous experience in designing and coding
    application programs will enhance the results of this course.

Course Agenda

What are CLISTs?

  • Definition
  • Dataset Organization
  • Methods of Execution

CLIST Language Syntax

  • Statement Types
  • Statement Syntax
  • Symbolic Variables
  • SET Statement
  • WRITE / WRITENR Statements
  • READ Statement
  • PROC Statement
  • IF‑THEN‑ELSE Statement
  • SELECT‑WHEN Sequence
  • Iterative DO Sequence
  • DO‑WHILE Sequence
  • DO‑UNTIL Sequence
  • GOTO Statement
  • EXIT

CLIST Control Variables and Functions

  • Control Variables
  • Character Functions
  • Data Functions

Debugging CLIST Execs

  • CONTROL Statement
  • ERROR Routines

User‑defined Subprocedures

  • Defining and Using Subroutines
  • Nesting CLISTs
  • External Routines

TSO/E Processing in CLISTS

  • Using TSO Commands
  • Control Statement Options
  • SYSDSN Function
  • LISTDSI Function
  • OUTTRAP Function

Using ISPF Services in CLISTS

  • BROWSE / VIEW Services
  • EDIT Service
  • LIBDEF Service
  • DISPLAY Service
  • SETMSG Service
  • SUBCOM Command

Parsing Data

  • READDVAL Statement

File I/O

  • Executing Programs in Execs
    • ALLOC Command
    • CALL Command
    • FREE Command
    • CLIST Statements
      • OPENFILE Statement
      • GETFILE Statement
      • PUTFILE Statement
      • CLOSFILE Statement

Advanced CLIST Topics

  • Submitting Batch Jobs
  • Processing Job Output in CLISTs
  • Using the TSO EDIT Command
  • Mixed Case Processing
  • Executing a CLIST in a Batch Job

ISPF Edit Macros

  • Overview
  • Edit Macro Commands
  • Using Edit Primary Commands
  • Using Edit Line Commands
  • Using Edit Macro Keyphrases
  • Using Edit Labels

To Hire a proven TSO/E CLIST Subject Matter Expert Consultant and Instructor that teaches this class, call 800-798-3901 today!

Leave a Reply