Message Sets: CWF properties for attribute reference and local attribute dateTime types
CWF properties for attribute reference and local attribute dateTime types.
The Custom Wire Format properties described here apply to:
- Objects: Attribute Reference, Local Attribute
- DateTime schema types: date, dateTime, gDay, gMonth, gMonthDay, gYear, gYearMonth, time
Physical representation
Property | Type | Meaning |
---|---|---|
Physical Type | Enumerated type | Select one from the displayed list:
The default value is fixed length string. |
DateTime Format | String | Specify a template for date and time. The default dateTime format is dependent on the logical type of the object. For information about the defaults for the dateTime format according to the logical type, see Message Sets: DateTime defaults by logical type. See Message Sets: DateTime formats for details of date and time formats. |
Length | Button and Integer | If you have
selected a Physical Type of Fixed Length String, Packed Decimal, or Binary, and have selected
the length to be defined by Length,
enter the number of length units for the element. The minimum value that you can specify is 1 for all three physical types. The maximum value that you can specify is 256 for Fixed Length String, 10 for Packed Decimal, and 2147483647 for Binary. The default value is 0 (zero). |
Length Reference | Button and Enumerated type | If you have selected the length to be defined
by Length Reference,
select the name of the integer object that specifies the length of
this object. Make your selection from the displayed list of integer
objects that are defined as siblings of the current object, and occur
before it in the structure of the message. For information about reordering elements, see Message Sets: Reordering objects. |
Inclusive Length Reference | Check box | This property is applicable only if Length Reference is set. If the check box is selected, the value of the sibling integer object that is identified by Length Reference is the length of the current object plus the length of the sibling integer object. If the check box is not selected, the value of the sibling integer object that is identified by Length Reference is the length of the current object only. If the check box is selected, the Length Units property of the sibling integer object must be the same as that of the current object. |
Length Units | Enumerated type | Select the unit of length for the element or
attribute. Select one of the following options from the displayed
list (some physical types do not offer all these options):
The default is Bytes. |
Justification | Enumerated type | If you have set the Physical Type property to Fixed Length String, select Left Justify (the default value) or Right Justify from the list. If you have selected another value for Physical Type, this property is inactive. |
Padding Character | String | If you have set the Physical Type property to Fixed Length String, and the Justification property is either Left Justify or Right Justify, this property is applicable. When writing an output message, use the padding character to fill out the remaining character positions when the string length is less than the length implied by the Length or Length Reference property. Whether the string is padded from the left or the right is governed by the Justification property. When parsing an input message, the padding character is trimmed from the end of the string. Whether the string is trimmed from the left or the right is governed by the Justification property. Specify this character in one of the following ways:
The choice of which of these padding character forms is used for an MRM element depends on the padding character that is required and whether the padding character is to be subject to data conversion. In most cases, the specification of a padding character in quotation marks is sufficient, and when this padding character is used, it is converted to the target code page of the output MRM message that is being generated. For example, when converting from ASCII to the code page 500, if you have specified U+0008 as your padding character, it is converted from 0x08 to 0x15, the ASCII and EBCDIC representations of 'back space'. If a padding character is required that cannot easily be entered in the padding character field, the Unicode mnemonic format can be used to specify the required character. When used, this Unicode value is also converted to the target code page of the MRM message that is being generated. If you are converting a message from one code page to another, ensure that the converted value of the padding character is valid for this code page. If the padding character cannot be represented in the target code page, it is replaced by a substitution character. The substitution character is fixed and its value depends on the specified target code page. If a padding character is required that is not subject to data conversion, the hexadecimal or decimal format can be used and you then have the option of specifying an absolute value as a padding character that is inserted directly into the output message. If this format is used, ensure still that this value is valid for the code page of any output messages that are created using these MRM definitions. |
Numeric representation
Property | Type | Meaning |
---|---|---|
Signed | Check box | Specify whether
the value is signed. This property is applicable only if the Physical type property is Packed Decimal. By default, this check box is cleared, which indicates that the value is not signed. |
Byte alignment
Property | Type | Meaning |
---|---|---|
Byte Alignment | Enumerated type | Specify how the object is aligned from the start
of the message. Select one of:
|
Leading Skip Count | Integer | Specify the number of bytes to skip before reading
or writing this object. The default is 0, the minimum value is 0, and the maximum value
is 999999.
You can use this value to ignore unwanted fields in a structure, or
to model a field defined by C or COBOL data which requires alignment
on a 2, 4, 8 or 16 byte boundary. Specify the number of bytes to skip
before reading or writing this object. When an output message is written,
Skip Count bytes are assigned the value of the message set Byte Alignment
Pad property. For repeating objects, this property is applied to the first instance only. |
Trailing Skip Count | Integer | Specify the number of bytes to skip after reading
or writing this object. The default is 0, the minimum value is 0, and the maximum value
is 999999.
You can use this value to ignore unwanted fields in a structure, or
to model a repeating structure containing fields which require alignment
on a 2, 4, 8 or 16 byte boundary. When an output message is written,
Skip Count bytes are assigned the value of the message set Byte Alignment
Pad property. For repeating objects, this property is applied to all instances. |