In this issue is another TREMENDOUSLY VERSATILE data base program called “Dbx.B6”. Both this TOS Version by Earl, and the Dbx.B6 program, are off-shoots of the program “Dbase-1” given in the July 89 issue. Since Earl left some margin space I’ll propound upon these programs and give the readers some insight to more that is to come.
It is intriguing that Earl printed his text with this Dbase1 program, which is really a “Record” Data Base program. The Records are “user flexible” so that the Dbase can be used for any purpose. The most common use is a Mail File, a Telephone Listing, or an Inventory Data Base. But, as you can see, Earl found a way to use the program as a Word Processor as well. T.O.S. Disk users are fortunate to have the services of Earl Dunnington to provide this and other programs in a form that can be used with TOS Disk.
The original article about Dbase1 in the July 89 issue created much interest in using the TS-2068 Vars area for managing data bases. And Why Not! Sinclair Computers manages the vars area much better and provide much more capability THAN ANY OTHER COMPUTER marketed now or before! IBM computers, for example, limit the LEN (length) of string arrays to 255 characters while Sinclair Computers have no practical limit. This whole group of paragraphs can be tucked into a character array (and it is). We dont have to worry about FINDING the data for editing. The Sinclair Rom does that for us. We can shift data about using simple basic commands <LET A$=H$(3)>, etc.
Back in the July 89 issue I promised to bring in a set of Machine Code utilities to provide faster SORTING of the Dbase1 Records. These sorting utilities have been done and will be presented in a follow on issue of Update. Don Lamen is the author of these MC utilities. When the MC utilities are given they will be adaptable to Earl’s TOS program given here, and for the Sort functions of the Dbx.B6 program given elsewhere in this issue. Then an Update of the original Dbase1 program that uses the MC sorting will be given also.
Dbase1 goes beyond any software that I am aware of to “Sort and Manage Disk Data Files”. Lets set up a straw man for talking purposes. Lets say that we have set up several different “Record Files” using either this program, or the “Dbx.B6” program. One file is a simple one liner Telephone list created with Dbx.B6. It has 1000 “one line” records, a typical record being “McManus, Robert A. 425 872 6657”. Since we are highly socialized we have 4 such telephone files in disk (4000 names and tel nbrs). Another type of Record Data base is a Mail File. It is similiar to our Telephone list but has 5 lines in each record, typically: Line 1= “Mr. John A. McManus”: Line 2=”4416 Main St.”: Line 3=”Peroria, IL 49665-2416″: Line 4=”49665″: Line 5=”John,”.
Now the versatility provided by “sorting choices” will come into focus. We could sort by “First Group” to sort the Telephone listing. “McManus” would sort. For the Mail List, we could Sort BY LAST GROUP OF LINE #1 of the records. Then “McManus” would also Sort. Or, we could SORT BY LINE 4 LAST GROUP, which would sort by Zip Code. Any line can be sorted by either “first group of last group” within the line. This is true for both Dbase1 and Dbx.B6. But Dbase1 carrys it further and allows you to SORT DISK FILES. You can sort the 4 “Telephone Lists” that are in disk. Or you could sort any number of Mail Files that are in disk. The sorting is “against each file in disk”, providing a re-save of all files in numeric order.
Both programs use similiar protocol. When a file is LOADED from disk the program finds the “Dimension” of the file for management needs. When SORT is ordered, if sorting by “last group” the program first reverses the sorting line. Then a sort is done by sorting the first group within the line. When Sort is finished the sorting line is restored to its original form. Example: Mr. John McManus would be changed to McManus Mr. John. When sort is finished the line would be restored to Mr. John McManus. If sorting by Zip code, and the line were “Panama City, FL 32404” the sort would reverse to put the zip code first, then sorting would occur, then all zip codes would be returned to last group in the line.
The Machine Code utilities will greatly speed up the operation. Right now if you want to sort several disk files having many records it becomes an over-night “sort while you sleep”. You just wouldn’t believe the number of operations that take place to sort several disk record files! It is in the millions of operations! Included in the sorting is “Removing Repeat Records” in all files, and “Reordering” each file so that there are no Blank Records in the interior of the files.
So, the coming Machine Code utilities will make Dbase1 very fast in handling disk data files. In the meantime, we can get accustomed to operating a very versatile data base program for creating and managing large Record files for any purpose.
The OS-64 Screen
I notice that this program for TOS, by Earl, is for use with the Zebra OS-64 cartridge that implements the 64 column Screen. For those who do not have the OS-64, careful editing can be done to eliminate the 64 column screen calls and use the standard 32 column screen. Earl is invited to follow up in the next issue with guidance as to which lines to modify for 32 column screen. For those who DO have the OS-64, I have an article in works that is a complete word processor for use with the OS-64 cartridge. Look for it in a coming issue of Update. _BJ-