Home > Contents > Index >
CDM.FITTOINTERVAL
Slots a raw number into a calculated interval.
Syntax
<CDM.FITTOINTERVAL RAWNUMBER="number" TYPE="some type" INTERVAL="intervalvar"/>Description
This tag logs a raw number, such as age or income, as an interval (range). The raw number is converted into a range by the tag, which then stores the calculated value in a string.
Parameters
RAWNUMBER (required)
- Input parameter. A string numeric value to fit into an interval.
TYPE (required)
- Input parameter. Type of interval to which to fit the raw number. There are two default types defined in the
commercedata.ini
file:age
andincome
. There can also be user-defined types. Each type has two variants:typelowest
andtypeinterval
.INTERVAL (required)
- Input and output parameter. As input, name of variable to hold a calculated interval on output.
Example
Given default values of
agelowest=5
andageinterval=10
, the following tag returns the value"5-14"
in the variablerange
.<CDM.FITTOINTERVAL RAWNUMBER="13" TYPE="age" INTERVAL="range"/>
Home > Contents > Index > Oracle XML Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.