I want to count the duplicates and put them in an output file.
Input file = VB, RECL=30713
Pos 97,9
LASNF008A
LISNN007C
LISNN007C
LISNN014C
LISNN014C
LLSNF069B
LLSNF069B
LIPNF009B
LIPNF009B
LIPNF009B
LASNF021A
LASNF021A
LISNN007C
LISNN007C
LISNN014C
LISNN014C
LLSNF069B
LLSNF069B
LIPNF009B
LIPNF009B
LIPNF009B
LASNF021A
LASNF021A
Wanted output FB:
LISNN007C 2
LISNN014C 2
LLSNF069B 2
LIPNF009B 3
LASNF021A 2
LISNN014C 2
LLSNF069B 2
LIPNF009B 3
LASNF021A 2
I tried this but it doens't work. Help me please.
SORT FIELDS=(97,9,CH,A)
OUTFIL REMOVECC,NODETAIL,
BUILD=(104X),
OUTREC=(97,104),
SECTIONS(97,9,
TRAILER3=(97,9,COUNT=(EDIT(TTTTT))))
OUTFIL REMOVECC,NODETAIL,
BUILD=(104X),
OUTREC=(97,104),
SECTIONS(97,9,
TRAILER3=(97,9,COUNT=(EDIT(TTTTT))))