Article View: net.micro.pc
Article #6123DataStar Help Needed
From: Robert Dale
Date: Tue, 08 Apr 1986 06:56
Date: Tue, 08 Apr 1986 06:56
45 lines
2730 bytes
2730 bytes
A friend has a Sanyo MBC-555 -- you know, the almost-IBM-alike with 160K
drives. He has a problem with DataStar running on this machine. He isn't a
programmer, and I'm new to DataStar. I wonder if anyone out there can help
with the following problem:
My friend has a membership/subscriptions file with approximately 500
records, which just won't work. On starting up DataStar, at first the
program objected because it thought the .DTA file wasn't properly
terminated. After a bit of hacking around, I came to the conclusion that
DataStar data files need to be terminated with a record whose contents are:
a byte with decimal value 255
another byte with decimal value 255
a comma
another comma
a carriage return
a line feed
(I take it the carriage return/line feed is the standard record-end marker
in DataStar). Well, I wrote a wee BASIC program to stick this sequence at
the end of the data file, and, hey presto ... DataStar produces a different
error message. This time it objects that "either the key field is the wrong
length or the index (.NDX) file is not terminated properly". Okay: my
friend doesn't know why his files are screwed up, but it looks like a crash
that resulted in both the .DTA and the .NDX files not being terminated
properly. The problem is, I can't see any way to fix the .NDX file, since,
as far as I can see, it contains at least one CTRL-Z's, which BASIC believes
to be an end-of-file. So, I can't read through the file to see what's at
its real end. Any ideas? The only tools we have available are BASIC,
WordStar, and EDLIN, and none of these will let me get past the CTRL-Z. Is
there any way I can do this from BASIC? Alternatively, does anyone know the
format of DataStar index files, such that I could reconstruct the index file
from the data file?
Any leads at all would be appreciated. Unfortunately, this machine is an
island due to its weirdo disk format and its lack of ports, so I can't move
the data to another machine with better tools.
--
Robert Dale University of Edinburgh, Centre for Cognitive Science,
2 Buccleuch Place, Edinburgh, EH8 9LW, Scotland.
...!ukc!cstvax!epistemi!rda
Technical Details
Message-ID:
<664@epistemi.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!linus!decvax!bellcore!petrus!scherzo!allegra!princeton!orsvax1!pyrnj!caip!seismo!mcvax!ukc!cstvax!epistemi!rdaShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!linus!decvax!bellcore!petrus!scherzo!allegra!princeton!orsvax1!pyrnj!caip!seismo!mcvax!ukc!cstvax!epistemi!rda From: rda@epistemi.UUCP (Robert Dale) Newsgroups: net.micro.pc Subject: DataStar Help Needed Message-ID: <664@epistemi.UUCP> Date: Tue, 8-Apr-86 01:56:57 EST Article-I.D.: epistemi.664 Posted: Tue Apr 8 01:56:57 1986 Date-Received: Sat, 5-Apr-86 07:55:31 EST Organization: Epistemics, Edinburgh U., Scotland Lines: 47