|
to do this in sql: LOR the field with binary value '11111101' the result should be x'FF' if the 7 bit is on. SELECT * FROM MyFile WHERE LOR(myField, X'FD') = X'FF' -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Muralidhar Narayana Hi There is column oriented file YCSC1. One of the field is YSTAT1 which is defined as Type Character & Length 1. I need select records from this file YCSC1 when 7th bit of YSTAT1 is "on" . Can some one help me how to go about this and acheive records for this selection. TIA, Murli.
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.