CLIST

From Wikipedia, the free encyclopedia

CLIST (Command List) (pronounced "C-List") is a procedural programming language for MVS/TSO systems.

In its basic form a CLIST is just a simple list of commands to be executed in strict sequence (like a DOS batch (*.bat) file).

CLIST also can read/write MVS files, read/write to a TSO terminal and has normal IF/ELSE DO/END block constructs. It can read parameters from the caller and there is also a function to hold global variables and pass them from one CLIST to another. A CLIST can also call an MVS application program (written in COBOL or PL/1, for example).

A CLIST can also be run as a batch program (by running JCL which executes the TSO control program (IKJEFT01)). TSO menus using ISPF dialog services can be written in CLIST. You should also compare the function of CLIST with that provided by REXX.

Example program:

PROC 0
WRITE HELLO WORLD!

CLIST is an "interpretive" language. That is, the computer must translate a CLIST program (or "CLIST" for short) every time the program is executed. CLISTs therefore tend to be much slower than programs written in "compiled" languages such as COBOL, FORTRAN, or PL/1. (A program written in a compiled language is translated once to create a "load module" or "executable".)

In other languages