On 07-26-97 21:06, waiting for 22, Cameron Clark said:
FS> Hmm, I don't know about that. COBOL uses indexed files and they seem to
FS> work fine on my DOS machine. Probably more effort for the compiler,
FS> but that's what compilers are for, eh?
CC> I dunno how it works unless it truely goes to the lowest execution
CC> level and bypasses the FAT and allocates clusters on its own.
As far as I can tell, it simply creates a separate index file. For
instance, if you open a file called FILE.DAT with organization indexed
it creates another file as well called FILE.IDX
Now I'm not sure on how they relate, but it seems to me that when you
look for a key it looks through the IDX file until it finds the
record matching that key and the IDX record holds a pointer to the actual
record in FILE.DAT.
Just a guess...
Frank
... Did I mention we're federal agents?
___ Blue Wave/QWK v2.12
--- Shotgun v1.38a
---------------
* Origin: The Mars Hotel 1-303-360-6626 (FidoNet) (1:104/520)
|