INCLUDE COND=(11,2,EQ,B'..01....0......1',
OR,21,1,EQ,B'01......'),FORMAT=BI
This example illustrates how to only include records in which:
- Bytes 11 through 12 are equal to the specified pattern of bit
2 off, bit 3 on, bit 8 off and bit 15 on
OR
- Byte 21 is equal to the specified pattern of bit 0 off and bit
1 on.
Results for selected field values are shown in Table 1
Table 1. Bit Comparison Example 3: Results for Selected Field ValuesBit Comparison Example 3: Results for Selected Field Values11,2,BI Value
|
11,2,BI Result |
21,1,BI Value |
21,1,BI Result |
Action |
---|
X'1221' |
True |
X'C0' |
False |
Include Record |
X'02C4' |
False |
X'41' |
True |
Include Record |
X'1234' |
False |
X'00' |
False |
Omit Record |
X'5F7F' |
True |
X'7F' |
True |
Include Record |
X'FFFF' |
False |
X'2F' |
False |
Omit Record |