CNV BIN
Expected Behaviour
o UNICODE Alpha Field from Numeric field or NATIONAL Alpha Field from Numeric Field
- Converts the value of the specified Numeric Field to a 4-byte unsigned binary integer and stores it in the 1- character (4-byte) Unicode/National Alpha field.
- The UNICODE/NATIONAL Alpha Field must be defined as a 1 character (4-byte internal length) field.
- Em build should fail if the character length of the UNICODE/NATIONAL Alpha Field is greater than 1 character.
- An Overflow error should occur at runtime if the value of the Numeric Field is greater than the maximum value that can be stored in a 4-byte unsigned binary integer.
- An Overflow error should occur at runtime if the value of the Numeric Field is negative.
o UNICODE Alpha Field from Literal Value or NATIONAL Alpha Field from Literal Value
- Converts a numeric literal value to a 4-byte unsigned binary integer and stores it in the 1- character (4-byte) UNICODE/NATIONAL Alpha field.
- The UNICODE/NATIONAL Alpha Field must be defined as a 1 character (4-byte internal length) field.
- The numeric literal value must be a positive decimal value.
- Em build should fail if the numeric literal value is negative.
- Em build should fail if the character length of the UNICODE/NATIONAL Alpha Field is greater than 1 character.
- An Overflow error should occur at runtime if the value of the Numeric Literal is greater than the maximum value that can be stored in a 4-byte unsigned binary integer. (Maybe this should be an Em build error instead)
o UNICODE Alpha Field to Numeric Field or NATIONAL Alpha Field to Numeric Field
- Converts a 4-byte unsigned binary integer value that is stored in a 1-character (4-byte internal length) UNICODE/NATIONAL Alpha Field to an equivalent value stored in the specified Numeric Field.
- The UNICODE/NATIONAL Alpha Field must be defined as a 1 character (4-byte internal length) field.
- Em build should fail if the character length of the UNICODE/NATIONAL Alpha Field is greater than 1 character.
- An Overflow error should occur at runtime if the value of the 4-byte unsigned binary integer is greater than the maximum value that can be stored in the specified Numeric Field.
BUGS
--
JeanNeron - 2011-03-11