Go BackTSO/E: CLIST

Synopsis
TSO/E: CLIST is designed to familiarize the student with TSO command procedures (CLISTs).  The course presents general concepts and specific techniques for designing, writing and testing CLISTs.

Audience
This course is for all who will be using or writing CLISTs.

Time
5 - 10 hours

Product Code: TSO201
After completing this course, the student should be able to:
 
Define a CLIST
Create a CLIST Dataset
Use TSO commands in a CLIST
Execute a program within a CLIST
Associate file names with datasets
Write a simple CLIST
Use some of the programming capabilities of the CLIST language
Automate customization of procedures using the TSO EDIT command
Test a CLIST

CLIST Overview
Presents an overview of CLISTs.  Covers what a CLIST is and when you might use a CLIST.
 
What is a CLIST?
Definition of a CLIST.  Types of commands available.  Possible uses.
Syntax and Conventions
The command format.  Conventions for using dataset names.  Using comments.

Creating a CLIST
Shows you how to create and execute a simple CLIST.
 
Getting Started
How to create a CLIST dataset.  The EXEC command.  Using HELP.
Executing Programs
Foreground Processing and the CALL statement.
Using Datasets
The ALLOC and ATTRIB commands.  The FREE and REUSE commands.

Writing a CLIST
Introduces the basic CLIST statements and how they are used.
 
Making Your CLIST Interactive
The WRITE and READ Commands.
CLIST Variables
Valid CLIST Variable names.  Use of the SET command.  How to concatenate CLIST variables.
Controlling the Flow of Processing
DO-WHILE-END, IF-THEN-ELSE and GOTO commands.
Testing a CLIST
CONTROL LIST, PROMPT, CONLIST and SYMLIST options.  The use of the LISTA command.  How to test a CLIST.
Exercises

Advanced Features
Discusses additional capabilities of the CLIST functions.
 
Control Variables and Built-in Functions
How to determine the length and data type of a CLIST expression.
How to include the current date and time in a CLIST.
Use of the functions &STR and &SUBSTR to manipulate data strings.
Customizing JCL
Use of TSO EDIT in a CLIST.  The positioning subcommands FIND, TOP, UP and DOWN.
Use of the CHANGE subcommand to modify data.  The use of END.
File Processing
The OPENFILE, GETFILE, PUTFILE and CLOSEFILE statements.
Modular CLISTs
Breaking up long CLISTs.
Using the EXEC command to pass data.
The PROC statement for receiving data.
The GLOBAL statement.
Error Processing
The options for exiting an error routine.  CONTROL FLUSH/NOFLUSH and CONTROL MSG/NOMSG.
Use of ATTN command.


 

Go Back