Gli esempi che seguono indicano come richiamare macro persistenti.
Esempio 1: Un URL in un file della macro:
http://www.mycompany.com/cgi-bin/db2www/$(handle)/mymacro.mac/report1
Esempio 2: Un tipico blocco HTML che si collega ad altri richiami della macro eseguiti nella stessa transazione
@DTW_STATIC()
...
%define handle = ""
@DTW_RTVHANDLE(handle)
%html(report) {
@DTW_ACCEPT(handle)
...
<a href="/cgi-bin/db2www/$(handle)/qsys.lib/mylib.lib/macros.file/
pcgi1.mbr/report2">continue</a><br>
<a href="/cgi-bin/db2www/$(handle)/qsys.lib/mylib.lib/macros.file/
pcgi1.mbr/quit">quit</a><br>
%}