Skip to main content

Macros (Tools/APIs)

Export macros programmatically; print information about available macros.

Background Information

A macro defines a substitution in a line of ObjectScript code. For details, see Using Macros and Include Files.

Available Tools

Includes the following class methods that you can use with macros:

  • Export()

  • ExportToStream()

  • ShowMacros()

Availability: All namespaces.


The special variable $SYSTEM is bound to the %SYSTEM package. This means that instead of ##class(%SYSTEM.class).method(), you can use $SYSTEM.class.method().

FeedbackOpens in a new tab