Sort Variable(IBM-V) Length Records

Input File 1 - V80.txt
....Smith
....Jones
....Alexander
....Alexander
....Smith
....James
Sort Control Cards - V80Ctl.txt
 RECORD TYPE=V,LENGTH=80
 SORT FIELDS=(4,CH,A)
 END
Command Line
> ahlsort V80Ctl.txt V80.txt V80Sorted.txt
Output File - V80Sorted.txt
....Alexander
....Alexander
....James
....Jones
....Smith
....Smith
Back to Examples