Container
Data from a Container is delimited by the DATASOURCE boundaries. It includes the following:
The name of the Container - displayed in quotation marks
A "Function(Field)" designation - displayed in quotation marks
The actual value returned by the "Function(Field)" designation. It is a single value when the function is Average, Count, Count Distinct, Max, Min, Mode, Sum, or Standard Deviation. It repeats for every row of data in the Container when the function is Data. The field can be either the name of a field in the Container, or * for every field in the Container
When "Function(Field)" returns one value, the format is as follows:
<DATASOURCE name="
container name
" field="FUNCTION(FIELD NAME)">
actual value
</DATASOURCE>
Example:
<DATASOURCE name="TRANSACTION_HISTORY"field="MAX(TRAN_AMT)">9245
</DATASOURCE>
When the function is Data, the format is as follows:
- <DATASOURCE name="
container name
" field="DATA(*)">
- <ROW>
<FIELD name="
TimeStamp
">
field value
</FIELD>
<FIELD name="
FIELD1 NAME
">
field value
</FIELD>
<FIELD name="
FIELD2 NAME
">
field value
</FIELD>
<FIELD name="
FIELD+n NAME
">
field value
</FIELD>
</ROW>
- <ROW+n>
<FIELD name="
TimeStamp
">
field value
</FIELD>
<FIELD name="
FIELD1 NAME
">
field value
</FIELD>
<FIELD name="
FIELD2 NAME
">
field value
</FIELD>
<FIELD name="
FIELD+n NAME
">
field value
</FIELD>
</ROW+n>
</DATASOURCE>
Example:
- <DATASOURCE name=“TRANSACTION_HISTORY”field=“DATA(*)”>
- <ROW>
<FIELD name=“Timestamp”>38057</FIELD>
<FIELD name= “TRAN_AMT”>300</FIELD>
<FIELD name=“TRAN_CODE”>203</FIELD>
<ROW>
- <ROW>
<FIELD name=“Timestamp”>38061</FIELD>
<FIELD name= “TRAN_AMT”>355</FIELD>
<FIELD name=“TRAN_CODE”>203</FIELD>
</ROW>
</DATASOURCE>
Copyright IBM Corporation 2012. All Rights Reserved.