Sort in specified order other than ascending or descending?
Posted: Wed Oct 10, 2012 4:01 am
Is there a way to use DSORT to sort based on specified values of a field, rather than in ascending or descending order? Say I had a file with records
02Smith
02Johnson
05Davis
06Thompson
02Jones
03Jackson
05Williams
07Newman
and I needed the records with 05 and 06 in the first two bytes to be in the file before all other records. How could I accomplish that?
02Smith
02Johnson
05Davis
06Thompson
02Jones
03Jackson
05Williams
07Newman
and I needed the records with 05 and 06 in the first two bytes to be in the file before all other records. How could I accomplish that?