home *** CD-ROM | disk | FTP | other *** search
- | Colorado Utilities Sort (CUSORT v.2.15)
- |
- | by
- |
- | Fred C. Hill
- |
- | Micro System Solutions
- | 5048 W. Maplewood Ave.
- | Littleton, CO 80123
- | 1-(303) 795-7653
- | 1-(800) 421-1789 (orders)
- |
- Sorting is one of those things every computer user must do at one
- time or another, and the sort program provided with most versions
- of DOS just doesn't do the job. It's slow; only sorts from column
- one; won't sort descending; has a limited capacity; and only uses
- regular memory to sort in. Not a very useful program when you have
- hundreds of thousands of records you want sorted in position 25 for
- 12 characters.
-
- CUSort implements what is known as a virtual sort, allowing you to
- sort more than will fit in RAM at one time. It does this by
- sorting manageable portions of the input file first, and then
- merging these pre-sorted lists to form the final output file. In
- theory, two billion records can be sorted in one run. In actual
- practice, the number of records will be limited only by the amount
- of available disk or expanded memory (EMS) capacity, and, of
- course, the amount of time you're willing to wait.
-
- CuSort Revision history
-
- version 1.0 - February 1990 Original version
-
- version 2.0 - August 1990
- Option D Directory changed to Option R Redirect.
-
- Option D Added to indicate "No duplicates to be written."
-
- Option L added to indicate "Sort by record length."
-
- Bug fixed - if blank record option (/B) not selected the
- program would not produce an output file.
-
- version 2.1 - November 1990
- Option E added. Do not use Expanded memory even if available.
-
- At an abnormal termination CuSort now removes its work files.
-
- Bugs fixed -
- Option L flag was never initialized so it could
- be invoked at any time by leftover memory contents.
-
- StdIn was not always used properly.
-
- version 2.11 - Changed hard disk usage.
-
- version 2.12 - Added minus sign to sort fields for descending order
- by field.
-
- version 2.13 - Febrary 1991
- Added C option to input largest record size. This
- option will improve proformance and cut down on
- disk usage.
- version 2.14 - June 1991
- Added DO option to place duplicate records in a different
- file rather than deleting them.
- version 2.15 - August 1991
- Fixed multiple field sort. Bug discovered by Guy Mayers.
-
- The D & L options were added at the request of Terry Hall of
- Illinois. Thanks for the idea Terry. This addition allowed me to
- find the /B option bug also.
-
- The DO option was added at the request of R.L.Boone of
- Houston, Texas. Thanks for the idea Robert.
-
- CUSort's operation is determined by the command line parameters you
- give it when the program is started. The command line format is
-
- CuSort [options] <inputFile >outputFile
-
- Options:
-
- /- Sort in descending order. The default is
- ascending order.
- /I Ignore upper/lower case. All input is compared
- as if it were upper case.
- /R xx Redirect temporary sort files to directory
- xx. (files will be deleted before program
- terminates.)
- /T Trim records. This parameter allows you to
- remove blanks at the beginning and end of the
- input records. Sequencing is done prior to
- trimming.
- /B Do not write blank records. All blank records
- found during the input phase will be discarded.
- /D Do not write duplicate records.
- /DO Place duplicate records in an output file (DUPSORT.DTA).
- /L Sort by length of record. /S parm is ignored.
- /S c,l Sort fields ... c = column; l = length. You may
- have a maximum of 6 /S fields during any single
- run. They must be placed in priority sort
- order.
- /E Do not use Expanded Memory (EMS) even if that memory
- is available.
-
- When sorting by fields the parameter denoting descending order
- (/-), will result in the file being sequenced in descending order
- from the major sort field to the minor sort field.
-
- Examples:
-
- CuSort /B /S 1,25 < textin.dat > textout.dat
- This example sorts just like the DOS sort except that the
- sort field size is limited to 25 characters and any blank
- records found during sorting will not be included in the
- output file.
-
- CuSort /- /I < textin.dat > textout.dat
- This example sorts the entire file, including blank
- records in descending sequence. Lower case and Upper case
- are sorted together.
-
- CuSort /- /I /S 10,5 /S 2,6 < textin.dat > textout.dat
- This example sorts on column 10 for 5 characters as the
- major sort field and column 2 for 6 characters as the
- minor sort field. The file is sorted in descending
- sequence and upper and lower case characters are sorted
- together.
-
- CuSort /L /DO <textin >textout
- This example will sort records by length of record and
- will move any duplicate records to the file DUPSORT.DTA.
-
- ORDER FORM
-
- Name: ------------------------------------------------------
-
- Address: ---------------------------------------------------
-
- City: ---------------------------- State: ---- Zip: --------
-
- Phone: ( ) -------------------------------
-
- Credit card: type - Visa Mastercard
-
- Card number: ------------------------------ expires ---/---
-
- Name on card: ---------------------------------------------
-
- ----------------------------------------------------------------
- CuSort latest version . . . . . . . . . . . . . . . $ 12.00
- Includes the following..
- Current disk direct from author
- Laser printed documentation
- Shipping and handling
- Telephone support
- Notification of further upgrades and
- products.
-
- Colorado residents include 3% state tax and
- appropriate local tax. . . . . . . . . . . . . .$ -----
-
- Shipping and Handling . . . . . . . . . . . . . . . .$ 5.00
-
- Total included . . . . . . . . .$ -----
-
-
- ----------------------------------------------------------------
- Order in one of three ways... Fill out this form and mail to:
- Micro System Solutions
- 5048 W. Maplewood Ave.
- Littleton, CO 80123
- - or -
- Call 1-(800) 421-1789 or 1-(303) 795-7653 (credit card orders)
- - or-
- Leave a Compuserve CMail (Compuserve Mail) message for
- Micro System Solutions (Fred C. Hill PPN 76060,102) with all
- of the information above. (credit card orders or information
- only please, DO NOT leave messages with credit card numbers
- in the forum areas)
- ----------------------------------------------------------------
-
-
-