select * from file where hex(decfield) like '40%'

Would that work for you?


It would be much safer to check the last byte for x40, or the entire length
of the field. In your example, if the high order 2 digits were 40... you
would have a false match. You need to check the last nibble of the final
byte, which normally is F for positive and D for negative number although
certain other values are permissible (if I mismember right, some mainframes
use C instead of D for negative numbers). But a x40 in the final byte is a
pretty good indication the field was not initialized right.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.