CLIST
CLIST (Command List) (pronounced "C-List") is a procedural programming language for TSO in MVS systems. It originated in OS/360 Release 20 and has assumed a secondary role since the availability of Rexx in TSO/E Version 2. The term CLIST is also used for command lists written by users of NetView.[1]
In its basic form, a CLIST program (or "CLIST" for short) can take the form of a simple list of commands to be executed in strict sequence (like a DOS batch file (*.bat) file). However, CLIST also features If-Then-Else logic as well as loop constructs.
CLIST is an interpreted language. That is, the computer must translate a CLIST every time the program is executed. CLISTs therefore tend to be 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.)
CLIST can read/write MVS files and read/write from/to a TSO terminal. It can read parameters from the caller and also features a function to hold global variables and pass them between CLISTs. A CLIST can also call an MVS application program (written in COBOL or PL/I, for example). CLISTs can be run in background[ii][iii]. CLISTs can display TSO I/O screens and menus by using ISPF dialog services.
Compare the function of CLIST with that provided by REXX.
Example programs
PROC 0 WRITE HELLO WORLD!
Adding If-Then-Else logic:
/********************************************************************/ /* MULTI-LINGUAL "HELLO WORLD" PROGRAM. */ /* */ /* THIS CLIST, STORED AS USERID.TSO.CLIST(TEST), CAN BE INVOKED */ /* FROM THE ISPF COMMAND LINE AS SHOWN IN THE FOLLOWING EXAMPLE: */ /* */ /* COMMAND ===> TSO TEST SPANISH */ /* */ /********************************************************************/ PROC 1 LANGUAGE IF &LANGUAGE = SPANISH THEN + WRITE HOLA, MUNDO ELSE IF &LANGUAGE = FRENCH THEN + WRITE BONJOUR, MONDE ELSE + WRITE HELLO, WORLD EXIT
[iv]
See also
- Rexx
Footnotes
References
- ^ "z/OS TSO/E CLISTs". z/OS 2.1.0. IBM. 14 June 2013. Retrieved 12 May 2016.
- v
- t
- e
entities
Current | |
---|---|
Former |
- Towers
- 1250 René-Lévesque, Montreal, QC
- One Atlantic Center, Atlanta, GA
- Software Labs
- IBM Buildings
- 330 North Wabash, Chicago, IL
- Honolulu
- Seattle
- Facilities
- Cambridge Scientific Center
- IBM Hursley
- Canada Head Office Building
- IBM Rochester
- Automated teller machine
- Cynefin framework
- DRAM
- Electronic keypunch
- Floppy disk
- Hard disk drive
- Magnetic stripe card
- Relational model
- Sabre airline reservation system
- Scanning tunneling microscope
- Financial swaps
- Universal Product Code
- Thomas J. Watson (1914–1956)
- Thomas Watson Jr. (1956–1971)
- T. Vincent Learson (1971–1973)
- Frank T. Cary (1973–1981)
- John R. Opel (1981–1985)
- John Fellows Akers (1985–1993)
- Louis V. Gerstner Jr. (1993–2002)
- Samuel J. Palmisano (2002–2011)
- Ginni Rometty (2012–2020)
- Arvind Krishna (since 2020)
directors
- A Boy and His Atom
- Big Blue sports teams
- American football
- Rugby union
- Common Public License/IBM Public License
- Deep Blue
- Deep Thought
- Dynamic infrastructure
- GlobalFoundries
- GUIDE International
- IBM and the Holocaust
- International chess tournament
- Lucifer cipher
- Mathematica
- IBM Plex
- SHARE computing
- ScicomP
- Unions
- Category
- Commons
- Navigational boxes
- FOSS
- Midrange computers
- Operating systems
- Personal computers
- System/360
- System/370
- Typewriters
- Vacuum tube computers
This programming-language-related article is a stub. You can help Wikipedia by expanding it. |
- v
- t
- e
This mainframe computer-related article is a stub. You can help Wikipedia by expanding it. |
- v
- t
- e