Let's say we have a file with RECFM(VB) and records varying in length.
Example:

AAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
BBBB BBB          BBBBBBBBBBBB
CCCCCCCCCCCCCCCCCCCCCCCCCCCCC
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
EEEE
CCCCCCCCCCCCCCCCCCCCCCCCCCCCC
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
EEEE
AAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
BBBB BBB          BBBBBBBBBBBB

I want to sort the file (resulting in all 'A's before the 'B' etc.)
and remove all duplicates.
That means I want to sort on the whole content of the records.

I have tried many combinations of options (VLSHRT, VLFILL, editing in 
INREC statement etc.) with no better result than correct order of the
records,
but the duplicates are not removed (I had of course SUM FIELDS=NONE).

What options should I have ?

TIA
Thomas
_____________________________________________________________
Thomas Berg   Specialist   IT Utveckling   Swedbank AB (Publ) 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to