For the following examples, $ZDATEFORM is assumed to be one (1).
Example:
GTM>DO ^%D 22-NOV-2002
This example invokes %D in Direct Mode. Then %D displays the current date.
Example:
GTM>DO INT^%D GTM>ZWRITE %DAT="22-NOV-2002"
This example invokes %D with the label INT (INT^%D). The variable %DAT contains the current date. ZWRITE displays the contents of the output variable.
Example:
GTM>WRITE $$FUNC^%D 22-NOV-2002
This example invokes %D as an extrinsic function with the label FUNC. $$FUNC^%D returns today's date.