xfer problems sco-sun

Bill Campbell bill at celestial.com
Fri Apr 2 10:19:24 PST 2004


On Thu, Apr 01, 2004, Jean-Pierre A. Radley wrote:
>Bill Vermillion propounded (on Thu, Apr 01, 2004 at 08:18:23PM -0500):
...
>| Just split the each record into two pieces, swap the heard, and add
>| the rest.  I did something similar a very long time ago before the
>| xfer program existed.  As I recall it's just the first 20 bytes
>| that need to be swapped.
>
>Would that it were that simple: it's the twenty byte header at the
>beginning *of each record* that needs bytes swapped.

Complicated by the fact that the FP key and data records are fixed length
with no \n linefeed delimiter so one has to read fixed length.  I did this
with a C program years before learning perl where it would probably be only
a bit more than a one-liner.

More fun though was a FP customer running on a Radio Shack Model 16 where
disk problems created shifts in the filepro files where the key and data
files would get out of sequence (e.g. all fields past a certain record
would be shifted one byte to the left or some such, changing repeatedly
through the files).  Naturally the key and data files didn't shift at the
same places (and there weren't any backups of course :-).

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

When you have an efficient government, you have a dictatorship.
                -- Harry Truman


More information about the Filepro-list mailing list