The data tag can have the following attributes. Attributes enclosed in brackets, [], indicate that the attribute is optional. If you specify an optional attribute, do not include the brackets in your source. Some attribute values are shown as a list of choices enclosed in braces, {}, with possible choices separated by vertical bars, |. When you specify one of these attributes, do not include the braces in your source and only specify one of the choices shown.
<data type="{ char | int | packed | zoned | float | byte | struct }" ] [ bidistringtype="{ ST4 | ST5 | ST6 | ST7 | ST8 | ST9 | ST10 | ST11 | DEFAULT }"] [ ccsid="{ number | data-name }" ] [ count="{ number | data-name }" ] [ init="string" ] [ length="{ number | data-name }" ] [ name="name" ] [ precision="number" ] [ struct="struct-name" ]> </data>
The following table lists the data tag attributes. Each entry includes the attribute name, the possible valid values, and a description of the attribute.
Attribute | Value | Description |
---|---|---|
type= |
char int
zoned float byte struct |
Indicates the type of data being used (character, integer, packed, zoned, floating point, byte, or struct). Values for the length and precision attributes are different for different data types. For more information, see the Values for length and precision. |
bidistringtype= |
DEFAULT ST4 ST5 ST6 ST7 ST8 ST9 ST10 ST11 |
Specifies the bidirectional string type for <data>
elements with type=" String types are defined in the javadoc for the BidiStringType class. |
ccsid= | number where number defines a fixed, never-changing CCSID. data-name |
Specifies the host coded character set identifier (CCSID) for character
data for the <data> element. The ccsid
attribute can be specified only for <data> elements
with type= If this attribute is omitted, character data for this element is assumed to be in the default CCSID of the host environment. |
count= | number where number defines a fixed, never-changing number of elements in a sized array. data-name |
Specifies that the element is an array and identifies the
number of entries in the array.
If the |
init= |
string | Specifies an initial value for the <data>
element.
The initial value specified is used to initialize scalar values. If the element is defined as an array or is contained within a structure defined as an array, the initial value specified is used as an initial value for all entries in the array. |
length= | number where number defines a fixed, never-changing length. data-name |
Specifies the length of the data element. Usage of this attribute varies depending on the data type. For more information, see the Values for length and precision. |
name= | name | Specifies the name of the <data> element. |
precision= | number | Specifies the number of bytes of precision for some numeric data types. For more information, see the Values for length and precision. |
struct= | name | Specifies the name of a <struct> element
for the <data> element. A struct
attribute can be specified only for <data> elements
with type="struct" . |