|
date: Thu, 14 Feb 2013 15:12:26 -0800
from: CRPence <CRPbottle@xxxxxxxxx>
subject: Re: how to filter out spaces in fields defined as packed
numeric
On 14 Feb 2013 14:15, Needles,Stephen J wrote:
I had to find and fix some data like this. I used the following to
find the rows that had hex'40' in a particular field.
Select * from datafile where substr(trim(hex(orderqty)),1,2) = '40'
The TRIM scalar in the expression seems extraneous.? Regardless...
As I noted in prior responses, for the first byte of an odd-precision
Packed Decimal column, the value '40' is completely valid. The x'40' in
the first byte of storage for Packed BCD is legitimate, and therefore
should not be presumed to have originated as the EBCDIC blank x'40'.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.