Sort Variable Length Text Records

Input File 1 - T80.txt
Smith
Jones
Alexander
Alexander
Smith
James
Sort Control Cards - T80Ctl.txt
 RECORD TYPE=T,LENGTH=80
 SORT FIELDS=(1,CH,A)
 END
Command Line
> ahlsort T80Ctl.txt T80.txt T80Sorted.txt
Output File - T80Sorted.txt
Alexander
Alexander
James
Jones
Smith
Smith
Back to Examples