home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 6 File
/
06-File.zip
/
jsort13.zip
/
jsortpm.doc
next >
Wrap
Text File
|
1995-10-25
|
6KB
|
168 lines
JSORTPM:
Jsortpm is a shareware product that is release as a demonstration
copy only. Please use it only to test and see if it fits your needs.
If it doesn't fit your needs, but comes close please e-mail me with
your changes and I will see if I can accomadate your changes. Use of
this program is for limited use. Please register.
Why register:
Get the newest releases with bug fixes.
Get the newest functionality.
Jsortpm is currently being improved and update with new options.
Like Numberical Sorting.
Full Drag and Drop.
Configuration saving.
Point and Click field setting from viewing first line.
Template Sorting.
JsortPm is a PM integrated sort program that is limited only by disk
space that is available. It supports the use of networked drives for
temp space. It also support unlimted keys to sort by. Although jsortpm
needs disk space for temporary space it will sort large files relatively
quickly. It will also not hog all of you memory and resources. Eventhough
Jsortpm is a pm app it has the ability to support command line parameters
and run from a batch file with errorlevel codes returned (see below).
Note: Redirection is not supported since most users only redirect under
64K of data the sort that comes with Os/2 is sufficient.
USAGE:
1) From Icon on Desktop.
2) From Associatation.
3) From Command Line Interactive or NonInteractive.
Command Line Options:
USAGE:jsortpm [in file] [out file] [options] [-rmax rec. len] [-k key list]
Option: -tdrive for a temp drive to place workfile if diskspace is
low on default drive
: -c for command line full usage (No PM Window or Error messages and
automatic starting of sort. Might be used from a batch file. Will
return error codes.
Note: If -c is not used pm interface will pop up with command line options
filled in the dialog windows. If everything looks ok just hit
start button.
Max Rec Len: -r# Needed if variable sized records. If not given first line
is the length used.
Specify each key begining with -k. They are ordered in priorty with
respect to order in command line specification.
Key List: Start:Length:[Field Options] (: for start and length)
or : Start-Ending:[Field Options] (- for start and end)
Field Options: a or + = ascending (default)
: d or - = descending
: c = case sensitive (default)
: i = case insensitve
: n = field is translated to sort numerically
: f = field is translated to sort numerically but field is a float value
Notes: Number of Entries in Key List is limited to memory
Example: jsort in_file out_file -c -r80 -k20-39:d -k40:20
: Sort infile to outfile with a max record length of 80 chars and
: Key positions 20 to 39 in desc
then pos. 40,20 chars long default asc
PM Options:
Field 1 (Input File Name): Just type in directory and file name or
Hit the locate button to find your file.
Field 2 (Output File Name): Just type directory and name of output file
name or use locate to find location.
This field defaults to same directory and file
name with the exectension of .srt.
Field 3 (Maximum Record Length): Type in max rec length if file has varialble
length records or use arrow keys to change
number.
Field 4 (Use Temp Drive): Check if the default disk doesn't have enough space for
output file and temp file. If not sure jsort will return
an error.
Field 5 (Temp Drive): Will show up if above is checked. Use arrow keys to scroll
through available drives.
Key Fields: Start: Type in starting position of key or Use buttons or arrow keys
End: Type in length of field or Use buttons or arrow keys
Desc: Check if you want order to descend for this key.
Defaults to ascending.
No Case: Check if you want order to be case-insensative.
Default to case-sensative.
Hit Start to start sorting. When Jsort is done it will popup with a message showing that it
is done or an error message starting the problem and allowing you to fixit and restart it.
Note: For Drag and Drop sorting defaulting to whole record as key and default to extension
of .srt for output file and autostart create an object with -c option in command args.
Association:
Under Setting Click on Associations and in the field New Name add for example *.dat if
most of your sortable files end in .dat.
Error Codes Returned for Batch Programming in cmd files:
1 - Maximum Record length exceeded in record
2 - Invalid Command Line Argument
Greater than 9 and less than 30 are file errors
10 - I/O Error on input file
11 - Error freeing input file
12 - I/O error on output file
13 - Not Enough Diskspace on Output File Drive
14 - Not Enough Diskspace on Work Disk Drive
15 - Not Enough Diskspace on Output File Drive and Work Drive
16 - Unable to open input file
17 - Unable to create output file
18 - Unable to create temporay sort file
19 - I/O error on intermediate file
20 - Unable to create output file
Greater than 29 are memory errors.
30 - Memory error in Keys
31 - Memory Error: Merge Array
32 - Memory error: Merge Item
33 - Memory Error: Merge Buffer
34 - Memory Error: Out Buf Array Alloc
35 - Memory Error: Init of Data
36 - Memory Error: Key Entry
37 - Memory Error: Buffer Init
38 - Memory Error: Init of Sort Array
39 - Memroy Error: Sort Buffer
40 - Memory Error: Merge Entry
History:
Current Version 1.3
Fixed resolution viewing for 640x480.
Fixed command line option to work better.
Fixed minor bugs.