EXEC 2 is an interpreted, command procedure control, computer
scripting language
In computing, a script is a relatively short and simple set of instructions that typically automation, automate an otherwise manual process. The act of writing a script is called scripting. A scripting language or script language is a programming ...
used by the EXEC 2 Processor originally supplied with the
CMS component of the
IBM
International Business Machines Corporation (using the trademark IBM), nicknamed Big Blue, is an American Multinational corporation, multinational technology company headquartered in Armonk, New York, and present in over 175 countries. It is ...
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 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
XEDIT is a visual editor for VM (operating system), VM/CMS using block-oriented terminal, block mode IBM 3270 Computer terminal, terminals. (Line-mode terminals are also supported.)
XEDIT is much more line-oriented than modern Personal compu ...
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 high-level programming language developed at IBM by Mike Cowlishaw. Both proprietary and open-source software, open source Rexx interpreter (computing), interpreters exist for a wide range of comput ...
.
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
Rexx (restructured extended executor) is a high-level programming language developed at IBM by Mike Cowlishaw. Both proprietary and open-source software, open source Rexx interpreter (computing), interpreters exist for a wide range of comput ...
.
All three command interpreters—CMS EXEC, EXEC 2 and REXX — continue to be supported by z/VM.
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)