EXEC 2 explained
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.[1]
Relation to EXEC
EXEC 2 is mostly compatible[2] 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:[3]
- There is no 8-byte restriction on token length.[4]
- 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 arewritten using the syntax of CMS EXEC, EXEC 2 or REXX.[5] Like regular EXEC 2 "EXEC" commandfiles, they begin with a "&TRACE" statement,[5] to distinguish them from CMS EXEC files.
History
Written in the 1970s[6] 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.
External links
Notes and References
- Web site: Varian. Melinda. VM AND THE VM COMMUNITY: Past, Present, and Future. March 14, 2012.
- IBM Virtual Machine/System Product: EXEC 2 Reference - Program Number 5664-167 - Release 2 . SC24-5219-1 . Appendix A: CMS EXEC and EXEC 2 Relationship . http://bitsavers.org/pdf/ibm/370/VM/SP/Release_2_Jun82/SC24-5219-1_IBM_Virtual_Machine_System_Product_-_EXEC_2_Reference_Release_2_2nd_ed_198204.pdf#page=58 . 48–55 . Program Product . . April 29, 2022 .
- Web site: IBM Corporation. EXEC 2 Processor and CMS EXEC Processor. March 14, 2012.
- Web site: EXEC 2 Processor and CMS EXEC Processor. .
- Book: EXEC 2 Reference . 92 . 2017-12-03 . 2017-01-20 . https://web.archive.org/web/20170120054533/http://bitsavers.trailing-edge.com/pdf/ibm/370/VM_SP/Release_2_Jun82/SC24-5219-1_VM_SP_EXEC_2_Rel_2_Reference_Apr82.pdf . dead .
- Web site: EXEC 2 .