encyclopegia.org

EXEC 2

EXEC 2 is an interpreted, command procedure control, computer scripting language used by the EXEC 2 Processor originally supplied with the CMS component of the IBM Virtual Machine/System Product (VM/SP) operating system.

EXEC 2 is an interpreted, command procedure control, computer scripting language used by the EXEC 2 Processor originally supplied with the CMS component of the IBM Virtual Machine/System Product (VM/SP) operating system. ==Relation to EXEC== EXEC 2 is mostly compatible with CMS EXEC but EXEC 2 scripts must begin with an &TRACE statement. Some EXEC statements and predefined variables do not exist in EXEC 2, although in some cases there are analogs. There are some minor differences in some statements and predefined functions. EXEC 2 has the following enhancements: There is no 8-byte restriction on token length. Statements can be up to 255 characters long. EXEC 2 can issue commands to subcommand environments as well as CMS and CP. EXEC 2 has additional built-in functions. EXEC 2 has user-defined functions. EXEC 2 commands may include subroutines and functions. EXEC 2 has extra debugging facilities. CMS programs can manipulate EXEC 2 variables. Some statements of EXEC are not supported in EXEC 2, including: &BEGSTACK ALL &CONTROL &EMSG &END &GOTO TOP &HEX &PUNCH &SPACE &TIME Some predefined variables of EXEC are not defined in EXEC2: &* &$ &DISKX &DISK* &DISK? &DOS &EXEC &GLOBAL &GLOBALn &READFLAG &TYPEFLAG ==XEDIT Macros== XEDIT Macros are files with filetype XEDIT, whose contents are written using the syntax of CMS EXEC, EXEC 2 or REXX. Like regular EXEC 2 "EXEC" command files, they begin with a "&TRACE" statement, to distinguish them from CMS EXEC files. ==History== Written in the 1970s and formally introduced for CMS with VM/SP Release 1, EXEC 2 was preceded by CMS EXEC and superseded by REXX. All three command interpreters—CMS EXEC, EXEC 2 and REXX — continue to be supported by z/VM. ==References== ==External links== REX - A Command Programming Language, REX First Public Paper, SHARE 56, 18 Feb 1981

References

No reference rows published for this article.

Cite this article

MLA

"EXEC 2." encyclopegia.org, 2026, https://encyclopegia.org/wiki/exec-2. Accessed 24 November 2026.

Chicago

"EXEC 2." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/exec-2.

APA

encyclopegia.org. (2026). EXEC 2. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/exec-2

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

CMS EXEC

enwiki · references available

Sub Oslo

enwiki · references available

Alba-la-Romaine

enwiki · references available

Ariel Toaff

enwiki · references available

Christine Ladd-Franklin

enwiki · references available

Susan Miller Dorsey High School

enwiki · references available

Joint Light Tactical Vehicle program

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1372456859 · 0.5 · snapshot enwiki-001372456859

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.