PICTURE-- FLD START END LENGTH
9(10)V9(10) 2 81 91 11
9(10)V9(10) 2 81 91 11
I want to find out such records from a long list given in above format,
for which the PIC length for 9(10)V9(10) ( 10 + 10 = 20 ) is greater than the value given in length column(11).
i.e. 20 > 11.
Can this be done using DFSORT ?
The Input list goes like:
PICTURE-- FLD START END LENGTH
X(80) 1 1 80 80
9(10)V9(10) 2 81 91 11
X(4) 3 92 95 4
9(14) 4 96 109 14
9(4) 5 110 113 4
X(14) 6 114 127 14
9(8) 7 128 132 5
X(80) 1 1 80 80
9(10)V9(10) 2 81 91 11
X(4) 3 92 95 4
9(14) 4 96 109 14
9(4) 5 110 113 4
X(14) 6 114 127 14
9(8) 7 128 132 5
Out of these only rec 2 and 7 fit in the condition said above.
These records should be identified.