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


Example 2

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

 INCLUDE   COND=(1,10,CH,EQ,C'STOCKHOLM',
           AND,21,8,ZD,GT,+50000,
           OR,31,4,CH,NE,C'HERR')
This example illustrates how to only include records in which:
  • The first 10 bytes contain STOCKHOLM (this nine-character string was padded on the right with a blank) AND the zoned-decimal number in bytes 21 through 28 is greater than 50 000

    OR

  • Bytes 31 through 34 do not contain HERR.

Note that the AND is evaluated before the OR. ( Omitting records from the output data set—example illustrates how parentheses can be used to change the order of evaluation.) Also note that ending a line with a comma or semicolon followed by a blank indicates that the parameters continue on the next line, starting in any position from columns 2 through 71.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014