Hi:
Looking at some of these Tech Support notes might give you an idea.
I'm a bit confused by what TYPE of template you're using with PROC TABULATE. I assume you mean a STYLE template or a TAGSET template because PROC TABULATE does not have a TABLE template.
If you are trying to build your link in a STYLE template, then I do not believe you can build a dynamic link. If you are trying to build your link in a TAGSET template, then you probably can build a dynamic link by saving variable values to temporary variables when you're processing a variable's event and then when you get to the header, you can build the link. Just remember, however, that generally, the header is built before the rows for the variable values, so you may have to do something special to get the values you want into your headers.
At any rate, here are the links to the notes:
http://support.sas.com/kb/23/328.html
http://support.sas.com/kb/23/328.html
http://support.sas.com/kb/23/398.html (look at the trigger hyperlink event in this tagset example)
If you find that you need help with a TAGSET template, then you might consider contacting Tech Support, as they have the most experience generating TAGSET templates.
cynthia