When an executing GT.M image encounters an error:
After the action, if any, invoked by $ETRAP, $ZTRAP or EXCEPTION:
GTM>ZW ZW ^_____ %GTM-E-INVCMD, Invalid command keyword encountered GTM>
In Direct Mode, GT.M provides access to the RECALL command. RECALL allows you to retrieve a Direct Mode command line with a minimum of typing. The GT.M line editor allows you to make quick changes or corrections to the command line. For more information on RECALL and the line editor, see ChapterA 4: a??Operating and Debugging in Direct Modea??.
![]() | Note |
---|---|
The environment variable gtm_etrap specifies an initial value of $ETRAP to override the default value of "B" for $ZTRAP as the base level error handler. The gtmprofile script sets gtm_etrap to "Write:(0=$STACK) ""Error occurred: "",$ZStatus,!" which you can customize to suit your needs. For more information, refer to a??Processing Errors from Direct Mode and Shella??. |