DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: CHAR field containing packed (comp-3) data

  1. #1
    Join Date
    Oct 2005
    Posts
    1

    CHAR field containing packed (comp-3) data

    We are using Oracle 9i on the SUN Solaris with Microfocus Cobol.
    We have a field defined as CHAR. Within this field, we can store packed (comp-3) data. We have found that on a subsequent SELECT of this field from the data base, if this packed data contains a byte or bytes with an ASCII Hexadecimal value of = or > than '80', Oracle will attempt to convert or change it (i.e. value '80' is actually returned as 0 (zero)). Is there anyway that we can tell Oracle to return these values as is and not try to change them?

  2. #2
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    Have you tried using NCHAR instead of CHAR?

  3. #3
    Join Date
    Feb 2005
    Posts
    158
    If this isn't character data, it shouldn't be in a character field. It should be in a RAW.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width