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


RANGE example

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

 RANGE FROM(DATA1) ON(VLEN) HIGHER(10)
 RANGE FROM(DATA2) ON(31,18,ZD) LOWER(+123456789012345678)
 RANGE FROM(DATA3) ON(29001,4,FI) -
        HIGHER(-10000) LOWER(27)
 RANGE FROM(DATA2) ON(45,3,PD) EQUAL(-999)
 RANGE FROM(DATA3) ON(40,1,BI) NOTEQUAL(199)

The first RANGE operator prints a message containing the count of binary values from positions 1-2 of the DATA1 data set that are higher than 10.

The second RANGE operator prints a message containing the count of zoned decimal values from positions 31-48 of the DATA2 data set that are lower than 123456789012345678.

The third RANGE operator prints a message containing the count of fixed-point values from positions 29 001-29 004 of the DATA3 data set that are higher than -10 000 but lower than 27.

The fourth RANGE operator prints a message containing the count of packed decimal values from positions 45-47 of the DATA2 data set that are equal to -999.

The fifth RANGE operator prints a message containing the count of binary values from position 40 of the DATA3 data set that are not equal to 199. This RANGE operator could be used to count the number of records that do not have 'G' in position 40, because 199 (X'C7') is the EBCDIC code for 'G'. Alternatively, the COUNT operator could be used with OMIT COND=(40,1,CH,EQ,C'G').

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014