Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

CLIST

From Wikipedia, the free encyclopedia
Programming language
icon
This articlerelies largely or entirely on asingle source. Relevant discussion may be found on thetalk page. Please helpimprove this article byintroducing citations to additional sources.
Find sources: "CLIST" – news ·newspapers ·books ·scholar ·JSTOR
(April 2024)

CLIST (Command List; pronounced "C-List") is aproceduralprogramming language forTime Sharing Option (TSO) inSVS andMVS systems. It originated inOS/360[1] Release 20 and has assumed a secondary role since the availability ofRexx in TSO/E Version 2. In its basic form, a CLIST program is a list ofcommands to be executed in strict sequence (like aDOSbatch file (*.bat) file). OS/VS2 R3.6 (MVS) added If-Then-Else logic and loop constructs to CLIST.[2] The term CLIST is also used for command lists written by users ofNetView.[3]

CLIST is aninterpreted language. That is, the computer must translate a CLIST every time the program is executed. CLISTs therefore tend to be slower than programs written incompiled languages such asCOBOL,FORTRAN, orPL/1. (A program written in a compiled language is translated once to create a "load module" orexecutable.)

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 inCOBOL orPL/I, for example). CLISTs can be run in background[ii][iii]. CLISTs can display TSO I/O screens and menus by usingISPF dialog services.

Compare the function of CLIST with that provided byREXX.

Example programs

[edit]
PROC0WRITEHELLOWORLD!

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                                *//*                                                                  *//********************************************************************/PROC1LANGUAGEIF&LANGUAGE=SPANISHTHEN+WRITEHOLA,MUNDOELSEIF&LANGUAGE=FRENCHTHEN+WRITEBONJOUR,MONDEELSE+WRITEHELLO,WORLDEXIT

Footnotes

[edit]
  1. ^Usually IKJEFT01
  2. ^by runningJCL that executes a TSO terminal monitor program[i] (TMP)
  3. ^This capability was added by the program product Time Sharing Option/Extensions (TSO/E), which is a standard part ofOS/390 andz/OS.

References

[edit]
  1. ^"Command Procedure Statements"(PDF).IBM System/360 Operating System: Time Sharing Option - Command Language Reference(PDF). Systems Reference Library (Fifth ed.).IBM. April 1973. pp. 245–249. GC28-6732-3. RetrievedSeptember 29, 2025.
  2. ^"Command Procedure"(PDF).OS/VS2 TSO - Command Language Reference(PDF). Systems (Fourth ed.).IBM. January 1976. pp. 271–324. GC28-0646-3. RetrievedSeptember 29, 2025.
  3. ^"z/OS TSO/E CLISTs".z/OS 2.1.0. IBM. 14 June 2013. Retrieved12 May 2016.
History
Products
Hardware
Current
Former
Business
entities
Current
Former
Facilities
Initiatives
Inventions
Terminology
CEOs
Other
Authority control databases: NationalEdit this at Wikidata
Retrieved from "https://en.wikipedia.org/w/index.php?title=CLIST&oldid=1337446844"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp