z/OS DFSORT Application Programming Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example 3

z/OS DFSORT Application Programming Guide
SC23-6878-00

 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 Values
Bit 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

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014