GT.M Programmer's Guide

GT.M Programmer’s Guide
Copyright 2011-2023 Fidelity National Information Services, Inc. and/or its subsidiaries. All rights reserved.
April09,2026
Table of Contents
- About This Manual
- Intended Audience
- 1. About GT.M
- 2. GT.M Language Extensions
- Operating System Interface Facilities
- 3. Development Cycle
- Overview of the Program Development Cycle
- 4. Operating and Debugging in Direct Mode
- Operating in Direct Mode
- Entering Direct Mode
- Debugging a Routine in Direct Mode
- Creating and Displaying M Routines
Executing M Routines Interactively
Processing with Run-time and Syntax Errors
Continuing Execution From a Breakpoint
Using the Invocation Stack in Debugging
- 5. General Language Features of M
- M Names
- Variables
- Arrays and Subscripts
- Literals
- String Literals
- 6. Commands
- Close
- Xecute
- Examples of XECUTE
- ZAllocate
- Examples of ZALLOCATE
- ZBreak
- Examples of ZBREAK
- ZCOMpile
- Examples of ZCompile
- ZDeallocate
- Examples of ZDEALLOCATE
- ZEDit
- Examples of ZEDIT
- ZGoto
- Examples of ZGOTO
- ZHALT
- Examples of ZHALT
- ZHelp
- Examples of ZHELP
- ZLink
- ZLINK Compilation
- 7. Functions
- $ASCII()
- Examples of $ASCII()
- $Char()
- Examples of $CHAR()
- $Data()
- Examples of $DATA()
- $Extract()
- Examples of $EXTRACT()
- $Find()
- Examples of $FIND()
- $FNumber()
- Examples of $FNUMBER()
- $Get()
- Examples of $GET()
- $Increment()
- Examples of $INCREMENT()
- $Justify()
- Examples of $JUSTIFY()
- $Length()
- Examples of $LENGTH()
- $NAme()
- Examples of $NAME()
- $Order()
- Examples of $ORDER()
- $Piece()
- Examples of $PIECE()
- $Qlength()
- Examples of $QLENGTH()
- $QSubscript()
- Examples of $QSUBSCRIPT()
- $Query()
- Examples of $QUERY()
- $Random()
- Examples of $RANDOM()
- $REPLACE()
- Examples of $REPLACE()
- $REverse()
- Examples of $REVERSE()
- $Select()
- Examples of $SELECT()
- $STack()
- Examples of $STACK()
- $Text()
- Examples of $TEXT()
- $TRanslate()
- Examples of $TRANSLATE()
- $View()
- Argument Keywords of $VIEW()
- $ZAscii()
- Examples of $ZASCII()
- $ZATRansform
- Examples of $ZATRANSFORM()
- $ZAUditlog
- Examples of $ZAUDitlog()
- $ZBIT Functions
- $ZBITAND()
- $ZCHar()
- Example of $ZCHAR()
- $ZCOLlate()
- Example of $ZCOLlate()
- $ZCOnvert()
- Examples of $ZCONVERT()
- $ZDATA()
- Examples of $ZDATA()
- $ZDate()
- $ZDATE Format Specification Elements
- $ZExtract()
- Examples of $ZEXTRACT()
- $ZFind()
- Examples
- $ZGetjpi()
- Examples
- $ZJOBEXAM()
- Examples of $ZJOBEXAM()
- $ZJustify()
- Examples of $ZJUSTIFY()
- $ZLength()
- Examples of $ZLength()
- $ZMessage()
- Examples of $ZMESSAGE()
- $ZPARSE()
- Examples of $ZPARSE()
- $ZPIece()
- Examples of $ZPIECE()
- 8. Intrinsic Special Variables
- $Device
- 9. Input/Output Processing
- I/O Intrinsic Special Variables
- Device Name Variables
- I/O Devices
- I/O Device Recognition
- Using Terminals
- Setting Terminal Characteristics
READ X#maxlen Command for Terminals
- Using Sequential Files
- Setting Sequential File Characteristics
- FIFO Characteristics
- Considerations in Implementing FIFOs
- Using Null Devices
- Null Deviceparameter Summary
- Using PIPE Devices
- Modes of PIPE Operation
- Using Socket Devices
- Message Management
Socket Read Termination Conditions
- I/O Commands
- Open
- 10. Utility Routines
- Using the Utilities
- 11. Integrating External Routines
- Introduction
- 12. Internationalization
- Collation Sequence Definitions
- Creating the Shared Library holding the alternative sequencing routines
Defining the Environment Variable
- Creating the Alternate Collation Routines
- Transformation Routine (gtm_ac_xform_1 or gtm_ac_xform)
Inverse Transformation Routine (gtm_ac_xback or gtm_ac_xback_1)
Transform Utility Routine (gtm_ac_xutil)
Version Control Routines (gtm_ac_version and gtm_ac_verify)
Example of Upper and Lower Case Alphabetic Collation Sequence
Example of Collating Alphabets in Reverse Order using gtm_ac_xform_1 and gtm_ac_xback_1
- 13. Error Processing
- Compile Time Error Message Format
Processing Compile Time Errors
- Processing Run-time Errors
- Run-time Errors in Direct Mode
- Program Handling of Errors
- $ECODE
Nesting $ETRAP and using $ESTACK
Differences between $ETRAP and $ZTRAP
- Error Actions
- Break on an Error
Unconditional Transfer on an Error
Terminating Execution on an Error
Setting $ZTRAP to Other Actions
- 14. Triggers
- Triggers
- A. M Coding Standards - Do’s and Don’ts