CNV TEXT Statement

Overview

Converting To and From alpha fields

  • Both fields are RAW
    • No change in behavior
  • 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

  1. Test CNV TEXT with all combinations of RAW, UNICODE, and NATIONAL.
  2. Test CNV TEXT to a Record using RAW, UNICODE, and NATIONAL alpha fields.
  3. Test CNV TEXT from a Record using RAW, UNICODE, and NATIONAL alpha fields.
  4. Test CNV TEXT with a Token field
  5. Test CNV TEXT with Numeric, Date, and Logic fields using RAW, UNICODE, and NATIONAL alpha fields.

Bugs

-- PeteBrower - 2011-03-17

Edit | Attach | Watch | Print version | History: r17 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2011-05-11 - JeanNeron
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback