SORTCHEK

PURPOSE   OPERATION   OPTIONS   COMMAND LINES   RELATED PROGRAMS


Author: Dan Mares, dmares @ maresware . com
Portions Copyright 1998-2016 by Dan Mares and Mares and Company, LLC
Phone: 678-427-3275

top

PURPOSE

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.


top

OPERATION

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.


top

COMMAND LINE

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).


top

OPTIONS

-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)


RELATED PROGRAMS

Disksort

top