Tracing Macro Expansion
You can trace macro expansion with the CMDTRACE parameter. With CMDTRACE enabled, macro expansion steps are shown in the Extract or Replicat report file.
Syntax
CMDTRACE [ON | OFF | DETAIL]
Where:
-
ONenables tracing. -
OFFdisables tracing. -
DETAILproduces a verbose display of macro expansion.
In the following example, tracing is enabled before #testmac is called, then disabled after the macro's execution.
REPLICAT REP MACRO #testmac BEGIN COL1 = COL2, COL3 = COL4, END; ... CMDTRACE ON MAP test.table1, TARGET test.table2, COLMAP (#testmac); CMDTRACE OFF