> > if you transfer an HP pascal program ( .CODE file) to another computer and
> > then transfer the file back from the remote computer to the HP, the HP
> > will not execute the program saying `it is not a CODE file'.
>
> Evidently the file is being modified in the transfer process. Exactly
> what transfer method are you using? Serial, GPIB/IEEE-488, or something
> else? What software? What kind of computer is the intermediate host?
> Since I can transfer listmode data files HP->PC and then PC->HP and they
> are intact*, its difficult to imagine why a CODE file wouldn't survive this
> process, but I haven't tried it. [...]
Binary FTP transfers do reproduce the files faithfully, whether DATA or
CODE; however, the problem is convincing the HP directory that it is
truly a '.CODE' file. Just changing the name to include the .CODE
suffix won't do it because the directory incorporates a 'TYPE' field
that classifies the received file as a binary file, which is different
(at least to the HP OS) than a program. The only way I've found to
successfully transfer HP programs by FTP is to use the Fusion package
for the transfer, at both originating and receiving ends (it doesn't
matter what kind of system is in the middle). Fusion for HP Pascal has
an option ("quote type h") which will preserve the HP file type. Sorry,
I don't use FACSNET much and can't say if the equivilent is in it.
[If anyone's interested, Fusion is available from Network Research Corp.,
Oxnard, California, USA; (805) 485-8974.]
-- Neal Benson Phone: (904) 392-0008 Department of Pathology FAX : (904) 392-4693 Box 100275 Email: nbenson@nervm.nerdc.ufl.edu, or University of Florida neal@cell.pathology.ufl.edu Gainesville, FL 32610 USA