CNV TEXT Statement
Overview
Converting To and From alpha fields
- Both fields are RAW
- Both fields are UNICODE or NATIONAL
- Same basic behavior
- UTF-32 characters are being moved.
- From RAW to UNICODE or NATIONAL
- Same basic behavior
- Each RAW character is transcoded to its UTF-32 character before setting into the destination field.
- From UNICODE or NATIONAL to RAW
- Same basica behavior.
- Each UNICODE or NATIONAL character is transocded to an 8859-15 character during the move.
- An error will be thrown when a character can't be transcoded to 8859-15.
Converting Numeric, Date, and Logic fields
- From Alpha
- No change in formatting behavior
- Alpha data can be RAW, UNICODE, or NATIONAL.
Converting To and From a Record
- To Alpha from Record
- No change in behavior.
- Each field in the record is converted to the appropriate alpha string using the same rules that apply when converting a singer field of the same type.
- From Alpha to Record
- No change in behavior.
- Each field in the record is converted from the subset of the alpha field using the same rules that apply when converting a single field of the same type.
Test Plan
- Test CNV TEXT with all combinations of RAW, UNICODE, and NATIONAL.
- Test CNV TEXT to a Record using RAW, UNICODE, and NATIONAL alpha fields.
- Test CNV TEXT from a Record using RAW, UNICODE, and NATIONAL alpha fields.
- Test CNV TEXT with a Token field
- Test CNV TEXT with Numeric, Date, and Logic fields using RAW, UNICODE, and NATIONAL alpha fields.
Bugs
--
PeteBrower - 2011-03-17