Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
OL<br />
into The Archive<br />
The QL's flexible database: by David<br />
Nowotnik<br />
Of the four software packages<br />
to be supplied free with the QL,<br />
the database program, 'Archive'<br />
could well be the one most widely<br />
used. For while the QL rests in<br />
the precarious no-man's-land at<br />
the top end of the home computer<br />
market, and bottom of the<br />
cut throat business arena, infor<br />
mation storage and retrieval will<br />
be the major link between the<br />
wide ranging band of QL users.<br />
Whether one examines the<br />
original versions of 'Archive',<br />
supplied to all buyers of the QL<br />
prior to February '85, or the<br />
upgraded and improved 'V2 .0',<br />
the overall conclusion is the<br />
same. 'Archive' can provide a<br />
superb database system. Its<br />
great strength is that it can be<br />
tailored exactly to meet the<br />
user's requirements; none of the<br />
compromises that accompany<br />
those ill-fitting, off-the-peg<br />
packages are necessary.<br />
Archive's strength,<br />
however, is also its weakness.<br />
When loading Archive into your<br />
QL, you haven't got a working<br />
database, though you do have<br />
the means to create the<br />
database. Archive is a high level<br />
programming language, not too<br />
dissimilar from SuperBasic,<br />
which allows a database suite to<br />
be created. High level commands,<br />
such as 'Create', 'Insert',<br />
and 'Find' perform the majority<br />
of conventional database<br />
operations, but it is still left to<br />
the user to put together to<br />
program — his/her lists of commands<br />
to create the required application<br />
for Archive.<br />
Particularly in the business<br />
area, users might well be unable,<br />
or unwilling (for reasons of time)<br />
to develop their own suite of<br />
procedures which provide the<br />
basis of any database application<br />
program. Fortunately, there<br />
is no copyright restriction on individuals<br />
or software houses<br />
creating for sale database application<br />
software written in<br />
Archive's programming<br />
language, for use with Archive,<br />
While neither Sinclair Research<br />
nor Psion have any immediate<br />
plans to market Archive application<br />
programs, freedom from<br />
copyright limitations has allowed<br />
other software houses to produce<br />
packages (for example,<br />
Eidersoft sell a suite of 5<br />
packages for £14.95). In fact,<br />
Psion have gone a step further to<br />
encourage application software.<br />
They have available for<br />
sale to individuals or companies<br />
a 'run-time' version of Archive.<br />
This program allows copy pro<br />
tection of Archive application<br />
software, making Archive a very<br />
attractive basis for companies<br />
wishing to develop and sell<br />
database systems for the QL. In<br />
the run time version, the ap<br />
plication loads immediately (no<br />
need to load Archive, then load<br />
the application). There is more<br />
RAM available for files, and<br />
there should be extra features<br />
not available to the standard<br />
version of Archive.<br />
By buying one of these<br />
application packages, the user<br />
is, of course, restricting himself<br />
toan 'off-the-shelf' system, and<br />
so cannot fully benefit from the<br />
flexibility which is Archive's<br />
main strength. There is the op<br />
tion, for those unwilling to program<br />
Archive for themselves to<br />
pay a programmer to write soft<br />
ware for them. But there is much<br />
to be said for trying to write your<br />
own software. The Archive pro<br />
gramming language is much<br />
easier to use than BASIC, and<br />
the concepts of the language are<br />
adequately covered in the QL's<br />
User Guide, as well as a number<br />
of other books. The Sunshine<br />
Publication by Alison McCallum-<br />
Varey called 'Quill, Easel, Archive<br />
and Abacus on the Sinclair<br />
QL' is one good example of a<br />
text book which covers Archive<br />
programming in an easy to<br />
follow manner.<br />
Your own database<br />
If you are still not convinced that<br />
you could write your own<br />
database program, then read on.<br />
Wriiing computer programs,<br />
even in Archive's simplified pro<br />
gramming language, is a matter<br />
of applying logic and common<br />
sense to solve a problem.<br />
Reasonably, assuming that<br />
everyone is blessed with some<br />
abilities to think logically and use<br />
common sense, programming<br />
Archive should be within<br />
anyone's capabilities.<br />
Setting up a database<br />
system should involve a preset<br />
sequence of tasks; defining<br />
exactly what is required, planning<br />
a logical sequence of opera-<br />
Figure 1: Schematic layout of the address program<br />
tions to meet the objectives,<br />
then writing procedures which<br />
carry out these operations. The<br />
procedures are tested individually<br />
(to iron out bugs),<br />
then a linking procedure written<br />
to pull together the whole se<br />
quence.<br />
To demonstrate Archive's<br />
simplicity, here is a simple<br />
database application, a name<br />
and address file. The list of procedures<br />
which make up this file<br />
is shown in fig.2 . But what may<br />
be more relevant to the budding<br />
programmer are the processes<br />
which were involved in designing<br />
the system.<br />
When analysing any potential<br />
computer application, the<br />
first question that must always<br />
be asked is 'do I really need a<br />
computer to do this?'. In the<br />
case of a name and address file,<br />
if all that is required is to look up<br />
an address or telephone<br />
number, using an address book<br />
will always be much simpler<br />
funless the names exceed<br />
several thousand!). One<br />
justification for a computer file is<br />
the need to sort the records in<br />
more than one way. I find that I<br />
have a remarkable ability for<br />
forgetting birthdays, with the<br />
result that family and friends are<br />
often left disappointed. So this<br />
name and address file includes<br />
the ability to sort through the<br />
records, and identify those<br />
families in which a birthday is<br />
imminent. The records in the file<br />
are in no particular order (but this<br />
could be achieved with simple<br />
modification using Archive's<br />
78 ZX COMPUTING DECEMBER/JANUARY 1985