EXEC 2 is an interpreted, command procedure control, computer
scripting language
A scripting language or script language is a programming language that is used to manipulate, customize, and automate the facilities of an existing system. Scripting languages are usually interpreted at runtime rather than compiled.
A scriptin ...
used by the EXEC 2 Processor originally supplied with the
CMS
CMS may refer to:
Computing
* Call management system
* CMS-2 (programming language), used by the United States Navy
* Code Morphing Software, a technology used by Transmeta
* Collection management system for a museum collection
* Color manag ...
component of the
IBM Virtual Machine/System Product (
VM/SP
VM (often: VM/CMS) is a family of IBM virtual machine operating systems used on IBM mainframes System/370, System/390, zSeries, System z and compatible systems, including the Hercules emulator for personal computers.
The following version ...
) operating system.
Relation to EXEC
EXEC 2 is mostly compatible with
CMS EXEC
CMS EXEC, or EXEC, is an interpreted, command procedure control, computer scripting language used by the CMS EXEC Processor supplied with the IBM Virtual Machine/Conversational Monitor System ( VM/CMS) operating system.
EXEC was written in 1966 ...
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 statemts 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
Rexx (Restructured Extended Executor) is a programming language that can be interpreted or compiled. It was developed at IBM by Mike Cowlishaw. It is a structured, high-level programming language designed for ease of learning and reading. ...
.
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
CMS may refer to:
Computing
* Call management system
* CMS-2 (programming language), used by the United States Navy
* Code Morphing Software, a technology used by Transmeta
* Collection management system for a museum collection
* Color manag ...
with VM/SP
VM (often: VM/CMS) is a family of IBM virtual machine operating systems used on IBM mainframes System/370, System/390, zSeries, System z and compatible systems, including the Hercules emulator for personal computers.
The following version ...
Release 1, EXEC 2 was preceded by CMS EXEC and superseded by REXX
Rexx (Restructured Extended Executor) is a programming language that can be interpreted or compiled. It was developed at IBM by Mike Cowlishaw. It is a structured, high-level programming language designed for ease of learning and reading. ...
.
All three command interpreters—CMS EXEC, EXEC 2 and REXX — continue to be supported by z/VM
z/VM is the current version in IBM's VM family of virtual machine operating systems. z/VM was first released in October 2000 and remains in active use and development . It is directly based on technology and concepts dating back to the 1960s, ...
.
References
{{Reflist
External links
EXEC 2 Processor, CMS User's Guide, z/VM Version 5 Release 1.0, Program Number 5741-A05, Document Number SC24-6079-00, First Edition September 2004
IBM mainframe operating systems
Scripting languages
VM (operating system)