COMPUTE / TOTAL Statements

Overview

The COMPUTE statement can work with Alpha fields when used with the P and M operators. It should continue to replace the non numeric characters with zeros and perform the computation on the result.

Test Plan

  1. Test P operators with raw alpha fields.
  2. Test P operators with National fields.
  3. Test P operators with Unicode fields.
  4. Test M operators with raw alpha fields.
  5. Test M operators with National fields.
  6. Test M operators with Unicode fields.

Bugs

  1. COMPUTE does not work with National / Unicode fields. A value of 'P100RT' added to --- X results in a total of 1 instead of 100.
  2. TOTAL does not work correctly with Unicode fields, hash totals come out zero. See job TOTAL UNICODE in TST.

-- PeteBrower - 2011-03-21

Edit | Attach | Watch | Print version | History: r8 | r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r4 - 2011-04-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