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  FORMAT=CH,
   COND=((5,1,EQ,8,1),&,
         ((20,1,EQ,C'A',&,30,1,FI,GT,10),|,
          (20,1,EQ,C'B',&,30,1,FI,LT,100),|,
          (20,1,NE,C'A',&,20,1,NE,C'B')))
This example illustrates how to only include records in which:
  • Byte 5 equals byte 8

    AND

  • At least one of the following is true:
    • Byte 20 equals 'A' and byte 30 is greater than 10
    • Byte 20 equals 'B' and byte 30 is less than 100
    • Byte 20 is not equal to 'A' or 'B'.

Note that p,m,FI is used for the FI fields, and p,m with FORMAT=CH is used for all of the CH fields. With FORMAT=f, you can mix p,m and p,m,f fields when that's convenient such as when all or most of the fields have the same format (although you can always code p,m,f for all fields and not use FORMAT=f, if you prefer).

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014