home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
UTILS2
/
MERGE213.ZIP
/
HISTORY.DOC
< prev
next >
Wrap
Text File
|
1994-02-20
|
7KB
|
143 lines
MergeFile HISTORY.DOC
NOTE: Enter COPY HISTORY.DOC PRN to print this file. It is formatted
to print 3 pages.
TRADEMARKS
ASP and the ASP logo are registered trademarks of the Association of
Shareware Professionals.
Amazing, isn't it? This thing isn't even a month old, and I've already
got a history doc. There are two parts, one for the Public Domain version
(v1.??) and the other for the ShareWare version (v2.??).
PUBLIC DOMAIN MergeFile
Revision v1.13 2/20/94
This is the second time I've found a bug right after I released a version
of this, but at least you know I'm working on it. I removed the CLEANUP
procedure in v1.11, but overlooked that if your current directory wasn't
the same directory as the output file, you wouldn't be able to rename the
temp file with the outfile's name, so I fixed it by adding Turbo Pascal's
FEXPAND and FSPLIT procedures and "uses DOS" to the program. Since the
"DOS" unit has its own "namestr" type for FSPLIT, renamed my "namestr" to
"namstrg." Also changed MERGE.DOC to follow the suggestions of <ASP>
(Association of ShareWare Professionals); that's why the first thing you
see is the HUGE disclaimer.
Revision v1.12 2/15/94
Revised the DOLINE procedures and dropped the "case" statement; it wasn't
necessary, but when I first wrote the program, I had been out of practice
for a LONG while. Dropped the "var" ParCnt; same reason. Changed PARSE
to make the parameter upcase instead of having upper and lowercase checks
in the "option" functions, and fixed all but NOTOPTION to check for the
whole string instead of using "pos"; fixed DOMERGE and HELP to "Halt" with
error level of zero for normal termination; dropped not needed "uppers"
from ERROR and OUTEXISTS. And changed this DOC to start with the latest
revision and go down instead of the first version and work up.
Revision v1.11 1/28/94
Nothing to interfere with the operation, but noticed I had two identical
checks at function NotOption (looking for '/'), so removed one of them.
Also, removed a useless check for number of files to close at the end of
procedure DOMERGE. Also, added "exit code" for HALT to give when an error
occurs and removed procedure CLEANUP; it wasn't needed anymore because I
changed its function to deleting the original file and renaming the temp
file with the outfile's name.
Revision v1.10 1/22/94
Talk about a short lived first release, the day after I distributed this
thing, I find a bug. Nothing drastic, mind you, but the longer of the two
files to merge would not have any duplicates removed after the shorter
file ended. Since I claimed all duplicates were removed, I had to fix it.
As long as I was at it, I also allowed one file name for input instead of
requiring two. One file is processed as if two identical files are being
merged, enabling you to remove any duplicates it might contain (it still
must be sorted). I also made the input string longer; now it's 255
characters instead of 80.
Version 1.00 first release of Public Domain MERGEFILE 1/21/94
SHAREWARE MergeFile
The creation of the ShareWare MERGE sprang from getting carried away while
fixing the bug I found in v1.00. It was one of those, well, I'm doing
this so I might as well do that. Everything above on the Public Domain
version also applies to this version, with the additional changes noted
below.
Revision v2.13 2/20/94
Same as v1.13, except v2.13 was already "using DOS." Also: changed error
11 to "input file empty" (it exists, just nothing in it) and moved the
existing errors 11, 12, and 13 up one (required changes to ERROR, FILECHK,
DOMERGE, and its MERGEFLD); added new variable "In1" so procedure DOMERGE
and its MERGEER could tell whether file1 was input or output and fixed
MERGEER to erase any 0 size files that might be left over if MERGE halted
on an error.
Revision v2.12 2/15/94
No v2.11; I'm going up an extra ".01" to get the two versions in sync, but
I should probably be going even higher, since I made some substantive
changes. Same changes as in v1.12 (except PARSE doesn't exist anymore in
this version, now it's GETPARAM), plus: changed the default merge to be
on the whole input line instead of just the first field; moved call for
"help" if no parameters on command line from main program to GETPARAM and
expanded "help" screen; increased "MaxOpt" and "MaxPar" by 1 (these don't
have much meaning anymore, but they did in the original); renamed "Line1M"
& 2M to "Key1In" & 2In, "Line1" & 2 to "Line1In" & 2In, and "LastLine" to
"LastKey" so that they made more sense; added option "/E" to disable halt
on error (included passing new "var" ChkMerge to MERGEFLD and adding byte
flag "ErFlag" to DOMERGE); added function ALLBLNK to MERGEFLD to see if
input line was all blanks; expanded error reporting: 11 changed to blank
or empty line and added 12 is missing key and 13 is missing field.
Revision v2.10 released 2/1/94
Revisions as they occur:
I'm not assigning a version number yet, just keeping tract of the changes.
1. 1/27/94 Added to Procedure FileChk: if two filenames are on the
command line and the first doesn't exist but the second one does, then
it is assumed the user wanted to write the second file to the first.
By rewriting file name 1 to create the file, it can then be reset
without a run time error.
2. 1/28/94 Same changes as v1.11
3. 1/29/94 Got carried away again and did a wholesale rewrite. The
changes are so numerous I'm not even going to try to list them. No
drastic changes in results, just on how you get there (I cleaned up
a lot of the code; about the only thing this version and the public
domain version have in common now is the first five letters of their
names). I'm calling this v2.10.
4. 1/30/94 I probably should mention a couple of new features:
expanded existing file overwrite prompt to include one and two
files on the command line, and added "/O" option to disable
overwrite warning, which could be useful for batch processing.
Version 2.00 first release of ShareWare MERGEFILE 1/24/94
I added the option of selecting 9 different fields to merge on with
"/F1../F9". You are also able to use all nine fields at once and have the
merge done in the order that they appear on the command line.