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

EXEC 2 is similar to CMS EXEC with 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 commands may include subroutines and functions.
 EXEC 2 has extra debugging facilities.
 CMS programs can manipulate EXEC 2 variables.

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, 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 the IBM CMS product.

References

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
 REX - A Command Programming Language, REX First Public Paper, SHARE 56, 18 Feb 1981

IBM mainframe operating systems
Scripting languages
VM (operating system)