Copy Fixed Length Records and include only the Name field in the output file with OUTREC

Input File 1 - F80.txt
Smith    100
Jones     50
Alexander  1
Alexander  3
Smith     39
James    890
Sort Control Cards - F80NameOnlyCtl.txt
 RECORD TYPE=F,LENGTH=80
 SORT FIELDS=COPY
 OUTREC FIELDS=(1,9)
 END
Command Line
> ahlsort F80NameOnlyCtl.txt F80.txt F80NameOnly.txt
Output File - F80NameOnly.txt
Smith    
Jones    
Alexander
Alexander
Smith    
James    
Back to Examples