System Debug Reference Manual (32650-90888)

Chapter 6 221
System Debug Command Specifications M-X
MACL[IST]
$nmdat > macl format@ ref
macro format ref = 0
macro format_job ref = 1
macro format_raw_table ref = 0
macro format_timer ref = 3
Display the REF (reference counts) for all macros that match the pattern "format@". Macro
format_job has been called one time, and macro format_timer has been called three
times.
$nmdat > macl @ trace
macro get_disp_wait_event trace = 3
macro get_element trace = 1
macro get_entry_ptr trace = 3
macro get_sublist trace = 3
macro get_table_info trace = 3
macro kso_number trace = 1
macro kso_pointer trace = 2
List all macros for which the MACTRACE command has been used to enable tracing of the
macro execution. The trace level number is displayed.
$nmdat > maclist @ echo
macro kso_number echo
macro kso_pointer echo
macro port_data echo
List all macros for which the MACECHO command has been used to enable the echoing of
each macro command line during macro execution.
$nmdat > macl @ trace echo all
macro kso_number echo trace = 1
macro kso_pointer echo trace = 2
List all macros that have tracing and echoing enabled. Note that only the macro names,
and the echo and trace information is displayed, even though the ALL option was
requested.
The keywords ECHO, REF, and TRACE restrict the output display to macro names and the
selected option(s). Parameters, keywords, help strings, versions, and macro bodies are not
listed when any one of these three options are specified on the MACLIST command.
Listing Macros to a File
The following example demonstrates how to produce a paged listing of all currently
defined macros, formatted to a file, one macro per page. The example is explained
command by command, based on the command numbers that appear within the prompt
lines.
%10 (%53) cmdat > list macros
%11 (%53) cmdat > env term_loud false
%12 (%53) cmdat > maclist @ all page
%13 (%53) cmdat > list close
%14 (%53) cmdat > set def
Command %10 opens an offline list file, named MACROS. All System Debug input and
output is recorded into this file, including the code we intend to display.