Printing as Integers


Placing the hash character after an attribute name causes the attribute to be printed as an integer. In normal operation, integer attributes are printed using the name given by a VALUE statement in a dictionary. Similarly, date attributes are printed as dates, i.e., "January 1 2010".

This operator applies only to attributes of type date, integer, byte, and short. It has no effect on other attribute types and cannot be used with module references. It is most commonly used to perform calculations on dates, where the dates are treated as integers.

For example, if a request contains Service-Type = Login-User, the expansion of %{Service-Type#} will yield 1, which is the value associated with the Login-User name. Using %{Event-Timestamp#} will return the event timestamp as an unsigned 32-bit decimal number.