Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | DSPs and building output templates | Using Output Templates to Format Service Output | %sysvar%
 
%sysvar%
You use the %sysvar% tag to insert the value of a special variable or server property into the document.
Syntax
%sysvar SystemVariable%
Arguments
SystemVariable is one of the following values, indicating which system variable or property you want to insert.
Value
Description
host
Inserts the name of the server that processed the DSP or template.
date
Inserts the current date. The date will appear in “Weekday Month Day HH:MM:SS Locale Year” format—e.g., Fri Aug 12 04:15:30 Pacific 2007.
lastmod
Inserts the date and time that this file was last modified. The date will appear in “Weekday Month Day HH:MM:SS Locale Year” format—e.g., Fri Aug 12 04:15:30 Pacific 2007.
property (propertyName)
Inserts the current value of the server property specified by propertyName (e.g., watt.server.port). See webMethods Integration Server Administrator’s Guide for a list of server properties.
Effect on Scope
None
Examples
The following example inserts the name of the server processing the DSP or template and the date on which it was processed:
.
.
.
Response generated on %sysvar date% by host %sysvar host%
.
.
.
The following example includes the value of the “watt.server.port” property, which identifies the server’s main HTTP listening port:
.
.
.
<p>
%sysvar host% was listening on %sysvar property(watt.server.port)%
<p>
.
.
.