To check the integrity of the sort sequence of a sorted file.
The file must be of a fixed length record format.
The program can only check primary sort sequence.
This program will read an entire file and check to see that every key is in order and that none of the keys are out of sequence.
If a record is out of sequence, the program shows on the screen 3 records, including the record before and after the out of sort record.
C:> sortchek inputfile -[options[rpl]]
C:> sortchek in1 -r 80 -p 20 -l 10
Check the sort sequence of a file whose record lenght is 80 and which is sorted on the 21 st character for a 10 character field. (remember, the -p option counts from 0 as the 1st character in the record).
-r #: indicates record length
-p #: indicates displacement(beginning at 0) to key field
-l #: indicates length of key field
-D: indicates sort is Descending order (default is ascending)