The following examples demonstrate how to invoke persistent macros.
Example 1: A URL in a macro:
http://www.mycompany.com/cgi-bin/db2www/$(handle)/mymacro.mac/report1
Example 2: A typical HTML block with links to other macro invocations that run in the same transaction
@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>
%}