Chapter 6. Commands

Revision History
Revision V7.1-003 23 November 2023
Revision V7.1-002 19 September 2023
Revision V7.1-001 26 June 2023
Revision V7.0-005 02 December 2022
Revision V7.0-003 24 June 2022
  • In “For”, In "[NO]UNDEF", changed a note to reflect that NOUNDEF no longer applies to an undefined FOR control variable.

  • In [NO]UNDEF”, In "[NO]UNDEF", changed a note to reflect that NOUNDEF no longer applies to an undefined FOR control variable.

Revision V7.0-002 23 March 2022
  • In “Halt”, fix typo

  • In “Hang”, specify that the actual HANG time may fractionally differ from the specified time

  • In “Read”, formatting cleanup

  • In “ZMessage”, Remove CTRLY from the list of internal errors

  • In “ZSHOW Information Codes”, add statistics(PRG,WFL,WHE,and WRL) for the update process and its helper processes; Clean up code description list for clarity

  • In “ZSTEP Interactions”, clarify CTRAP and ZSTEP interaction; remove caution about GT.CM neterror

Revision V7.0-001 24 November 2021
  • In “ZSHOW Information Codes”, add DEXA, GLB, JNL, MLK, PRC, TRX, ZAD, JOPA, AFRA, BREA, MLBA and TRGA in ZSHOW Information Codes table; add actions to the ZSHOW "B" output description

Revision V6.3-014 06 October 2020
  • In “ZMessage”, specify that Information and Success messages appear on STDERR.

  • In “ZSHOW Information Codes”, corrected CFS and DRD. Added DEXA, GLB, JNL, MLK, PRC, TRX, ZAD, JOPA, AFRA, BREA, MLBA and TRGA.

Revision V6.3-013 30 June 2020
Revision V6.3-011 20 December 2019
Revision V6.3-010 31 October 2019
Revision V6.3-008 24 April 2019
Revision V6.3-007 04 February 2019
Revision V6.3-006 26 October 2018
Revision V6.3-005 29 June 2018
Revision V6.3-004 23 March 2018
Revision V6.3-003 12 December 2017
Revision V6.3-002 22 August 2017
Revision V6.3-001 20 March 2017
Revision V6.2-001 27 February 2015
Revision V6.1-000 28 August 2014
  • In “Key Words in VIEW Command, added the LINK keyword and an example for TRACE.

  • In “ZLink”, added the description of recursive relink.

  • In “ZSHOW Information Codes”, added the description of ZSHOW "R" and removed the description of ZSHOW "C".

  • In “Close”, added information for closing a listening LOCAL socket.

  • In “Job”, added information about using DETACHed sockets in INPUT, OUTPUT, and ERROR Processmarameters.

  • Moved the contents of SET * under SET and KILL * under KILL.

Revision V6.0-003 24 February 2014
Revision V6.0-001 21 March 2013
Revision V6.0-000 19 November 2012

Table of Contents

Break
Examples of BREAK
Close
Do
Examples of DO
Else
Examples of ELSE
For
Examples of FOR
Goto
Examples of GOTO
Halt
Hang
Examples of HANG
If
Examples of If
Job
The JOB Environment
JOB Processparameters
Examples of JOB
Kill
Examples of KILL
Lock
Using Locks within Transactions
Example of LOCK
Merge
Examples of MERGE
New
Examples of NEW
Open
Quit
Examples of QUIT
Read
Set
Examples of SET
TCommit
TREstart
TROllback
TStart
S[ERIAL]
T[RANSACTIONID]=expr
Use
View
Key Words in VIEW Command
Examples of VIEW
Write
Xecute
Examples of XECUTE
ZAllocate
Examples of ZALLOCATE
ZBreak
Examples of ZBREAK
ZCOMpile
Examples of ZCompile
ZContinue
ZDeallocate
Examples of ZDEALLOCATE
ZEDit
Examples of ZEDIT
ZGoto
Examples of ZGOTO
ZHALT
Examples of ZHALT
ZHelp
Examples of ZHELP
ZLink
ZLINK Compilation
Examples of ZLINK
Auto-ZLINK
Auto-ZLINK setup
ZLINK, auto-ZLINK and Routine Names
ZKill
ZMessage
Examples of ZMESSAGE
ZPrint
Examples of ZPRINT
ZRUPDATE
ZSHow
ZSHOW Information Codes
Examples of ZSHow
ZSHOW Destination Variables
Use of ZSHOW
ZSTep
ZSTEP Into
ZSTep OUtof
ZSTep OVer
ZSTEP Actions
ZSTEP Interactions
Use of ZSTEP
Examples of ZSTEP
ZSYstem
Examples of ZSYSTEM
ZTCommit
Examples of ZTCOMMIT
ZTRigger
ZTStart
ZWIthdraw
Examples of ZWITHDRAW
ZWRite
ZWRITE Format for Alias Variables
Examples of ZWRITE

This chapter describes M language commands implemented in GT.M. All commands starting with the letter Z are GT.M additions to the ANSI standard command set. The M standard specifies standard abbreviations for commands and rejects any non-standard abbreviation. Behavior of I/O commands including OPEN, USE, READ, WRITE, and CLOSE is described in Chapter 9: “Input/Output Processing.