Pathmaker Reference Manual

Macro Definition and Commands
Macro Language
3–4 067869 Tandem Computers Incorporated
Macro Definition and
Commands
This subsection gives the syntax for defining and coding a macro. When creating a
macro, use the ?SECTION command first to define the macro. Then use the other
commands in whatever sequence is appropriate for your application.
Defining a Macro Define a macro in your custom source file or another EDIT file as follows:
?SECTION
macro-name
.
.
.
macro-name
is the name of the macro.
macro-name
must be a valid Pathmaker name. Refer to
the Pathmaker Programming Guide for object naming rules.
.
.
.
indicates the body of the macro; that is, the source and command lines that follow
the ?SECTION define statement.
Consideration
Macros can be registered in the Pathmaker project catalog using the Macro
Registration screen. Refer to the description of that screen in Section 1 for details on
the benefits of registering macros.