home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
OS2
/
SORT32B.ZIP
/
SORT32.DOC
next >
Wrap
Text File
|
1994-01-05
|
6KB
|
147 lines
SORT32 ver 2.01b 32bit sort for OS/2 2.1
COPYRIGHT (C) 1993 Larry Griffiths
SORT32 is a 32 bit OS/2 2.1 sort program.
This version can sort up to 999,999 records.
This version limits the record length to 256 characters.
The command format is as follows:
SORT32 Infilename Outfilename [Sort fields] [Options]
Infilename: Name of the input file.
Each record (or line) in the file must be terminated
with carriage-return/linefeed. (This is normal for most
text files.) Any other types of files will produce
unpredictable results.
Outfilename: Name of the output file.
Sort fields: Up to 16 sort fields may be specified.
Each sort field contains the starting position,
the length, and the sequence of the sortfield.
EXAMPLES: "SORT32 in out"
(This will default to column 1,
length of 1, ascending sequence)
"SORT32 in out 3,3,d"
(Sort starting in column 3, for a length of 3,
in descending sequence)
"SORT32 in out 5,2,a 2,3,d"
(Sort starting in column 5, for a length of 2,
in ascending sequence. If this field is the same
in both records being compared, then
sort starting in column 2, for a length of 3,
in descending sequence)
"SORT32 in out 5,2 2,d"
(Sort starting in column 5, for a length of 2,
in ascending sequence. If this field is the same
in both records being compared, then
sort starting in column 2, for a length of 1,
in descending sequence)
NOTE: The length defaults to 1 if
it is not entered.
The sequence defaults to ascending if
it is not entered.
Options: The options must start with the '-' (Dash or Minus)
character.
This version contains the options 'd' and 's'.
EXAMPLES: "SORT32 in out -d"
(Sort starting in column 1, for a length of 1,
in ascending sequence. Drop records that
have the same value in column 1.
"SORT32 in out 10,2 -s"
(Sort starting in column 10, for a length of 2,
in ascending sequence. If any of the records
are shorter than the starting column plus
the sort field length, then drop the short
record. Any records shorter than 12 characters
would be dropped in this case.)
NOTE: Any records that are shorter than the
highest sortfield column plus the
highest sortfield length will not be sorted
but will be output if the 's' option is absent.
"SORT32 in out 10,2 14,5"
(Any lines that are shorter than 18 will not
be sorted, but will appear in the output.
The highest sortfield '14,5' specifies columns
14,15,16,17, and 18.
F I X H I S T O R Y
01/05/94 - Fixed protection exception that occurred when sorting
one record.
P E R F O R M A N C E
This is a virtual sort. All of the records are sorted in the OS/2
virtual address space. Sorting files that are larger than the
amount of free real memory on your system may cause excessive swapping.
Try a seperate disk partition decicated to the swap dataset if
your system locks up while swapping. Excessive swapping will
cause sort times to increase dramatically.
D I S C L A I M E R
THIS PROGRAM IS FREEWARE AND AS SUCH YOU ARE PERMITTED TO
DISTRIBUTE IT WITHOUT CHARGE PROVIDED THAT ALL FILES ARE UNMODIFIED
AND DISTRIBUTED TOGETHER. DUE COPYRIGHT MUST BE OBSERVED. THIS
PROGRAM IS PROVIDED "AS IS" WITHOUT ANY WARRANTY OF ANY KIND,
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABLILITY AND FITNESS FOR A PARTICULAR PURPOSE.
IN NO EVENT SHALL I BE LIABLE FOR ANY DAMAGES, EITHER DIRECT OR
CONSEQUENTIAL, CAUSED BY THE USE, OR INABLILITY TO USE, THIS PROGRAM,
EVEN IF I HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
ALL TRADEMARKS AND SERVICE MARKS ARE THE PROPERTY
OF THEIR RESPECTIVE OWNERS.
Any comments or suggestions may be sent in written form to:
Larry Griffiths
P.O. BOX 691
Abilene Kansas, 67410